Basically doing a project for school work and it needs to have a login system and it can be as basic as i like so i am just storing the usernames/passwords in a text file. i have written code to read the file line by line and store each line in a variable, this all works but when i am testing to see if i can compare it to string even though they are the same it does not seem to think so, i have ran other tests to make sure my if/else statements are correct and have ran into no other issues, my current theory is that it has something to do with the fact that the usernames and passwords are stored with &quot;\n&quot; after to make them appear on different lines of the text file. public static void main(String[] args) throws IOException {          File file = new File(&quot;C:/Users/Will/Desktop/UnPs.txt&quot;);     Scanner scan = new Scanner(file);     while(scan.hasNextLine()) {                  String passCheck = scan.nextLine();              if(passCheck == &quot;test2,Test2&quot;) {             System.out.println(&quot;Test1&quot;);         }         else if(passCheck != &quot;test2,Test2&quot;) {             System.out.println(passCheck);             System.out.println(&quot;not found&quot;);                         }                }        }     the output of running the code is: test1,Test1 not found test2,Test2 not found test3,Test3 not found but in my head after it reaches the second line of the file it should have the value of passCheck as &quot;test2,Test2&quot;. if you want to see how the usernames and passwords are written to the file just ask but as i said my theory is that the &quot;\n&quot; is related
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 can I tell which version of Windows 8 I am running? Standard, Pro, Enterprise, or RT? I have searched everywhere but cannot find how to tell which version of Windows 8 I am running.  I have the system properties on the screen but it just says "Windows 8," nothing else.  Is this the standard edition?  EDIT 04142015:  My new favorite way to do this is to go to the commnand prompt and issue (same with Windows 7):    wmic os get caption  Response:  Microsoft Windows 8.1 Pro Encountering a FileSystemRights value that isn't defined in enumeration Seriously, it was fun and all, but I can't and I don't want to stay married to the same woman for the rest of my life - one real life marriage is enough..  Is there a lawyer or process of some kind in the world of Skyrim, and if not, who could help me divorce her?  If all else should fail, (sigh), do I have to take her to the backyard, thwack her head with the shovel and dig a shallow grave? How To Reduce Noise In Cycles Render Bank Deposit Scam I was on Instagram and saw someone's post about making extra cash.  I inboxed her for details and she said her manager will deposit funds into my account, then I would send them $2000 to split between the both of them.  She stated that I would need to overnight my bankcard to her so her manager can process the deposit.  She didn't ask for anything (neither SSN nor routing or account number) but the bank card only.  I assume that it is a scam.  Can anyone elaborate on this type of scam?  She claim it's not a scam. I would like my JSON output in Ruby on Rails to be "pretty" or nicely formatted.   Right now, I call to_json and my JSON is all on one line.  At times this can be difficult to see if there is a problem in the JSON output stream.  Is there way to configure to make my JSON "pretty" or nicely formatted in Rails? Uncountable sets of Hausdorff dimension zero Let $A \subset \mathbb{R}$ be a countable set.  It is easy to see that $A$ has Hausdorff dimension $\dim_H(A) = 0$.  Do there exist uncountable sets $A \subset \mathbb{R}$ with $\dim_H(A) = 0$? I have two different list. In the first list are some people picker columns.  Is it possible to create a lookup column for list 2 to add the user from the first list? I know it isn't supported in Sharepoint, but i hope someone have an idea to solve my problem. Is there a command prompt  equivalent for Windows 7? That is, I want to filter out the results of a command:  Bash use:  ls | grep root  What would it be from a Windows command prompt? I'm trying to find an anime movie I watched when I was younger; I believe I first watched it in 90/91. The story revolved around the recruitment and training of a group that would pilot a mecha that was similar to Voltron in that each pilot controlled a portion of the mecha that would merge into a bigger mecha. Points that I remember:   Started on Earth Program was government funded One of the pilots was related to the creator of the program, I think a female Mecha had chain weapon and a sword that was summoned from it's superhero-like chest icon. Killing blow was an m or w shape Ended with father/creator of mecha? being kidnapped by the aliens and used as human shield to deter attack on alien vessel What is the coefficient of the term $a^i b^j c^k$ in the expansion of $(a+b+c)^n$? What is the coefficient of the term $a^i b^j c^k$  in the expansion of   $(a+b+c)^n$ ?   Given solution:     Before collecting like terms, each term in the expansion is a product   of $n$ factors each  of which is $a, b,$ or $c$.  Those terms which   have exactly i a’s, j b’s and k c’s can be combined into   the single term $a^i b^j c^k$ and the number of such terms will be   equal to the number of n letter strings containing i a’s, j b’s and k   c’s, which by the Mississippi rule is $\frac{n!}{(i!\times j! \times  k!)}$.   I understand that this problem is actually about the derivation of the coefficient of the multinomial theorem,but I am not sure about the combinatoric reasoning,what I mean is that I understand the analogy problem but what I couldn't is how the analogy holds here,Could anybody explain this to me? How to draw arrows between colourboxes Convert UTC/GMT time to local time Should we sign-then-encrypt, or encrypt-then-sign? A nasty integral of a rational function I'm having a hard time proving the following $$\int_0^{\infty} \frac{x^8 - 4x^6 + 9x^4 - 5x^2 + 1}{x^{12} - 10 x^{10} + 37x^8 - 42x^6 + 26x^4 - 8x^2 + 1} \, dx = \frac{\pi}{2}.$$  Mathematica has no problem evaluating it while I haven't the slightest idea how to approach it. Of course, I would like to prove it without the use of a computer. Is this an explicit form of a special function I fail to recognize? Finding a ray that intersects a polygon as many times as possible Which personal pronoun is appropriate in single-author papers - 'I' or 'we'? Could the use of 'I' be considered egotistical? Or will the use of 'we' be considered to be grammatically incorrect? How do I load an mp4 video with multiple audio tracks into blender? I've recently started using OBS multiplatform to record game play. I currently have it set to record sounds on 2 different tracks. The first for system sounds (like gamesound, mumble, etc.) and the second to record the mic.  I am able to switch between tracks when I play the unedited video using VLC, but when I load the mp4 into blender, I only get track 1.  Did I do something wrong, or does blender vse not support multiple tracks?  Blender after loading mp4:  VLC video information:   UPDATE  For now, it seems like the solution will be to use an external tool to get the second audio track and import it into blender afterwards. A  has been logged with the Blender bug reporting tool.  UPDATE 2  The bug report has been closed/archived with the gist being "not a bug". It has been added to the . If you are looking to have support for multiple audio tracks, I would suggest looking at other video editing software until Blender adds support for this feature. I have a set of predictors in a linear regression, as well as three control variables. The issue here is that one of my variables of interest is only statistically significant if the control variables are included in the final model. However, the control variables themselves are not statistically significant.  Here is how the multicollinearity of all my variables look like (including control variables):   &gt; vif(lm(return ~ EQ + EFF + SIZE + MOM + MSCR + UMP, data = as.data.frame(port.df)))        EQ      EFF     SIZE      MOM     MSCR      UMP   3.687171 3.481672 2.781901 1.064312 1.438596 1.003408   &gt; vif(lm(return ~ EQ + MOM + MSCR, data = as.data.frame(port.df)))        EQ      MOM     MSCR   1.359992 1.048142 1.412658    My variables of interest are EQ, MOM and MSCR, and the control variables are EFF, SIZE and UMP. EQ is only significant if the three control var are included, and becomes insignificant when they are not:   Here are the coefficients (1rst row) and t-stats (2nd row) when control variables are included (notice that EQ is statistically significant)         intercept           EQ          EFF        SIZE         MOM       MSCR          UMP [1,] 0.005206246 -0.006310531 0.0001229055 0.004125551 0.007738259 0.00473377 5.838596e-06 [2,] 1.866628909 -1.746583234 0.0388823612 1.178460997 2.145062820 2.08131100 1.994863e-01  Now, here is the result of the regression when the control variables are excluded (notice that EQ is NOT statistically significant anymore)         intercept           EQ         MOM       MSCR [1,] 0.007313402 -0.002111833 0.007128606 0.00668364 [2,] 2.652662996 -0.595391117 2.036985378 2.80177366    The problem is that when I include my control variables, all my variables of interest are significant, but my control variables are not.  Which variables should I include in my final model? How should I structure my final model then, given the fact that the model will be used for forecasting?  Thank you, Why do PBX systems use -48 V? It seems common that PBX and other telephone hardware use a positive-ground power supply, where the "hot" line is at -48v.  What's the reason for that?