So, is this the right way of storing passwords in a database?
Secure hash and salt for PHP passwords
Assuming a simple grep such as:  $ psa aux | grep someApp 1000     11634 51.2  0.1  32824  9112 pts/1    SN+  13:24   7:49 someApp   This provides much information, but as the first line of the ps command is missing there is no context for the info. I would prefer that the first line of ps be shown as well:  $ psa aux | someMagic someApp USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND 1000     11634 51.2  0.1  32824  9112 pts/1    SN+  13:24   7:49 someApp   Of course, I could add a regex to grep specifically for ps:  $ ps aux | grep -E "COMMAND|someApp"   However, I would prefer a more general solution as there are other cases in which I would like to have the first line as well.  Seems like this would be a good use case for . Dealing with suggested edits on question to be closed as duplicate What's the difference between passing by reference vs. passing by value? What is the difference between    a parameter passed by reference a parameter passed by value?   Could you give me some examples, please? Parse HTML in Android Reproject GeoJSON from EPSG:3857 to EPSG:4326 How do websites block selecting text and how do I unblock that? There's a website () that somehow blocks selecting text. Also it blocks Ctrl+A to select everything, there is also no “Copy” in the popup menu.  What I have tried:  Some sites use JavaScript to block selection. So I disabled all JavaScript sources in no-script addon in Firefox. I tried the same site in Google Chrome with the Script Safe addon. Made sure that everything is blocked, still can’t select text. Mousepointer remains an arrow and not a text cursor also on the whole site.  Used about:config to disable JavaScript completely in Firefox. Still no effect.  I read that some sites use DIVs with the style display:block so I used Inspect to examine the styles of the site. There is not one mention of "block" on the whole website, not in embedded CSS nor in object style=-attributes.  The text is not an image or flash or some HTML5 canvas ect. Everything is within DIV and P tags but no style was found that might block the text selection.  How can the website still block any selection of text? Not to mention why browsers support such behaviours at all. I just want to use a selected word or sentence and want to search google for it using right mouse click. It’s pretty annoying when a website does such things and forces me to type technical terms and names into google by hand. It disturbs my workflow. How can I show that "A center of a free group that is non-cyclic is trivial" ? Insert issue with arrays Converting WKT to SHP? What is the most effective way for float and double comparison? Hide details of a chapter from TOC and list of tables, figures and algorithms While I applaud the excellent work of , the question has come up:     How long will be the elected moderator’s “mandate”? Is it for life, or are we going to have “moderator elections” regularly?   Of course, any community moderator who wishes to recuse him or herself can certainly do that at any time.   Should we have term limits that require community moderators be cycled out periodically, so others get a chance to moderate? Should we hold regular (say, yearly) moderator elections? Is it better to have a larger pool of community moderators, and let the normal ebb and flow of turnover get us "natural" variability in moderation?   What are your thoughts on this? When the loop is the figure shown below will be rotated in clockwise direction the the slip ring connected to the red segment of the loop will give us the positive voltage and the slip ring connected to the black segment of the loop will give us negative voltage according to the Flemings right hand rule.  What if the loop is rotated in counter clockwise direction ? Will the slip rings provide us the same polarities which they were giving when the loop was moving clockwise ?  Plus  The voltage from the loop is given by the equation.  V(t) = Vmaximum * sin (theta)  Where theta is the positive angle the red segment makes in the clockwise direction or in counter clockwise direction from this position ? Pointer vs. Reference What would be better practice when giving a function the original variable to work with:  unsigned long x = 4;  void func1(unsigned long&amp; val) {      val = 5;             } func1(x);   or:  void func2(unsigned long* val) {      *val = 5; } func2(&amp;x);   IOW: Is there any reason to pick one over another? Can "mustn't" be used for conclusions? I heard this sentence in an American film a while ago as I was watching it on DVD (the part after but is verbatim):  "I'm doing my best but I mustn't be doing it right."  This is something I occasionally hear in American films: phrases like "he mustn't have done it" or "she mustn't be studying now", where a logical conclusion is expressed. So far I've thought that the normal thing to say is "he can't have done it" or "she can't be studying now".  My question is: Can mustn't be used to express a logical conclusion when the speaker is certain that something didn't happen or isn't happening, at least in informal speech? Is this an American usage? (I've never heard this usage in British English, but this doesn't mean it doesn't exist.) Is there a change going on in the usage of the particular modal verb?  Note: All the references I've checked don't even mention this use of mustn't. Google books aren't of help either.   EDIT: I should clarify that I'm asking this question because if I wanted to express that I'm certain I'm not doing something right (as in the sentence quoted from the film) I'd say "I'm doing my best but I can't be doing it right". I would think that the use of mustn't/must not wouldn't be standard usage (although the meaning is perfectly clear to me; I never mistook it for an injuction). One of the answers in a reading exercise in my class today was:   100,000,000,000,000,000,000   ... which was the value of the highest denomination note ever issued. It was a 100,000,000,000,000,000,000 Pengo note, issued by Hungary in 1946. The students in my class wanted to know how they could say that last sentence in words in English. So I told them that I didn't know. They pointed out to me that if they wanted to read this bit of writing to someone they'd want to be able to use the words. Fair point.  Can anyone help?  [In case you're interested, a 100,000,000,000,000,000,000 Pengo note was worth about $0.20!] Find the limit $\lim_{n\to\infty} \frac{x_1 y_n + x_2 y_{n-1} + \cdots + x_n y_1}{n}$ When $\lim_{n\to\infty} x_n = a$, and $\lim_{n\to\infty} y_n = b$, find the limit, $$\lim_{n\to\infty} \frac{x_1 y_n + x_2 y_{n-1} + \cdots + x_n y_1}{n}.$$ Thank you for your help in advance. Logistic Regression - Adding interactions makes Independent variable statistically insignificant My name is Abhi &amp; I am trying to better understand logistic regression by solving a few practice problem. I am using R and RStudio as the development environment  Problem Statement  Given the age, sex and class(first,second,third) for each passenger can you predict if he survived or died when the titanic sank   Attempt1  Simple Logistic Regression. Use age,sex and passenger class directly. The formula (in R)  Survived~Pclass+Sex+Age  This gives fairly decent results - accuracy of 79% and all of independent variables are statistically significant   Attempt2  Add interactions between age,sex and passenger class. Accuracy has improved to 80% but age is no longer significant. Also none of the new terms(age-sex,age-class,sex-class,age-sex-class) are statistically significant. The formula (in R) Survived~Pclass*Sex*Age   Can some one explain why this is happening? I can accept that the new terms may not be significant but why is age no longer significant?   Any help would be much appreciated How to connect to Oracle as "SYS" from SQL*Plus in Java I was reasonably certain I've seen this before, but I was wondering how to solve the Diophantine equation  $$a^2+b^2=c^2+d^2$$  I tried a web search and found nothing on this one.  I'm trying to avoid another library trip to a less than local library (maybe I should have taken better notes on that chapter...).  I'm not quite sure how to handle this one.  The only thing I can figure out with this equation, if I remember correctly, is that the sum on either side may only contain prime factors of 2 or odd primes congruent to 1 mod 4.  And if I don't want a and b equal to c and d, the sum can't be prime as I believe a prime congruent to 1 mod 4 can be represented as the sum of 2 squares in exactly one way.  But that doesn't give me any insight into actually solving this problem.