how is function(char *something) and function(char &something) different?
What are the differences between a pointer variable and a reference variable in C++?
More Generating Functions problems Which is correct, "you and I" or "you and me"? When the phrase is used as an object, why so many native speakers are saying "you and I" instead of "you and me"? I'm not a native speaker but I thought "you and me" is correct. Not sure if this falls into the same category, but "Just between you and me" sounds more natural than "Just between you and I". I have 50 servers. I manage them from a central management server on SQL Server 2014 Enterprise Edition. I don't use repository.  I could open a query and get result for each one at the same time. But I want to do it in an automated way, like a job, to collect data from each server and store/handle it locally.  Is this possible and if so, how? I'm looking for a word that applies to all the things a person can wear, e.g. clothes, shoes, accessories, etc. It musn't be too generic, e.g. product, item, etc. Apparently you can easily obtain a client IP address in WCF 3.5 but not in WCF 3.0.  Anyone know how? A Product function for matrix products ASP.NET MVC: Weird characters in error page A word or short phrase for 'better in every way'? When we're comparing two or more things, there are times when we have to weigh the advantages or disadvantages of each one.  There are other times when one of the things is better for every way in which it's being judged, and the final decision is not based upon trade-offs.  I know that I've heard a phrase for this (I want to say it was two words), but I've had no luck in remembering it.    I don't think 'clearly superior' or 'clear winner' quite fit the bill, as that might still suggest that the disadvantages are significantly outweighed by the advantages.  Is there such a phrase, or even a single word, that would convey this meaning without using idioms? My input file is,  ami21 ami65 ami67 ami66 ami88 ami76 ami29 ami55  ami54 ami32   Using a single command line I need the output as,  ami22 ami66 ami68 ami67 ami89 ami77 ami30 ami56 ami55 ami33   I used the command  awk -vRS=ami '{$0=$0+1;ORS=RT}++n' inputfile &gt; outputfile   but I got the outputfile as ami21ami65ami67ami66ami88ami76ami29ami55ami54ami32  i.e. all strings are written in same line and without space. Could anyone suggext me some better command line. How do I restore /usr/bin/env after overwriting it with start-tor-browser file I was installing Tor and wanted to access it directly from the terminal, so I was trying to copy start-tor-browser to /usr/bin. But by mistake, I have replaced the /usr/bin/env file with the start-tor-browser file. What should I do now?? I love the  that was recently added onto Stack Exchange. However, this feature seems to be missing in per-site metas.  For instance:  Server Fault Meta:    DBA Meta    The parent websites, do have the edit/improve this post link however. Let $X$ and $Y$ be independent $Exp(1)$-distributed random variables. Find the conditional distribution of $X$ given that $X + Y = c$ ($c$ is a positive constant).  this is my idea:  $$f_{X \mid X+Y}(x\mid c) = \frac{f_{X,X+Y}(x,c)}{f_{X+Y}(c) } $$  if this is the right definition then i might calculate the righthand side to obtain the distribution but Iam unsure What would be an informative introduction to quantum computing software? I am new to Stack Exchange and am working on a quantum learning platform for minority youth groups (LGBTQ, low-income, at risk, etc).  In the question below they are looking for courses on the subject, which I am also interested in, and do plan on checking those links out for ideas.        What I am looking for are simple videos, articles, or even games, that cover basic quantum theory at an introductory level.  There are some games I have looked into and played.  Hello Quantum! was fun and informative, though on my end there was still a lack of comprehension on how the quantum computer (or anything else "quantum") would actually function and play out.   My focus for the educational platform is more directed towards the software side of quantum computing. Is there anything  that gives a good introduction to the functions and uses a quantum computer will have? As well as what language would be best to program one? Also, would there be a way to program a quantum computer through a classical computer? And, is there a simple introduction to any of this already existing? How can I prove: if $p $ is prime and $n>1$, then $ p^{\frac1n} $ is irrational? Is it possible to change where macOS Notification Center alerts appear on the screen?  They currently appear at the top right of the screen with the menu bar:    Alerts appearing in the top right tend to cover up work I'm doing more often than not. They cover up browser tabs, toolbar icons, and window titles.  I would prefer, say, the bottom right corner of the screen.  If moving the alerts is not possible, is it possible to change the screen on which they appear? iOS app 1.4.3, iOS 9.2.1  While viewing a post, the app somehow ended up in a state where it refuses to do much of anything.  What does work:   Swipe-scrolling vertically Jumping to the previous / next post using the up / down buttons    Everything else, though, has no effect:   Swipe-scrolling horizontally will not return to the previous view Tapping on a code block will not zoom to code-block view Tapping Delete button to delete a post will show a confirmation dialog, but saying yes will not cause deletion The Add Comment button brings up the text field, but I cannot type anything in it; I can only dismiss it None of the other buttons (Share, More, etc.) do anything Cannot view user profiles or revision history Tapping on links in a post or comment will not show a web page Tapping on a tag shows some visual feedback with a temporary color change, but doesn't do anything else   I still receive push notifications, but tapping on them doesn't take me anywhere. "I will appreciate your help" I encounter the phrase "I will appreciate your help" from time to time and it doesn't sound too honest to me. To be more specific, I don't have a problem with this phrase coming from a friend, because he will appreciate my help by "owing me one". But a stranger from the Internet, that's different, methinks.  "How will you appreciate it?" pops in my mind every time I see it, because to me, appreciation equals reward and, well, you can't reward people over the internet much. It is quite possible that I am just wrong and this is a perfectly fine figure of speech. PostgreSQL execute a default query when no row are returned I need to calculate the average score of a list of userId.  I have a table user_place_score:  (user_id, place_id, score)   Sometimes I do not have the score (no row for (user_id,place_id) in the table) so I need to fetch a "default" score from the table default_place_score:  (place_id, score)   Is is possible in PostgreSQL to do this in one query? For a given list of users and one place_id, select all their scores in the user_place_score and if no row is found then take the score found if the default_place_score table?  Basically I want to avoid doing this kind of stuff:  for (Integer userId : userIds) {   score = (query to fetch the score for this userId)   if (score == null)     defaultScore = (query to fetch the default score for this PlaceId)    total = total + defaultScore }  //return the average return total/numberOfUser "Always on Top" Windows with Java In Java, is there a way to have a window that is "Always on top" regardless if the user switches focus to another application?  I've searched the web, and all of the solutions lean to some sort of JNI interface with native bindings.  Truly this can't be the only way to do it?.. or is it? Determinant of a matrix whose $(i,j)$th element is $|i-j|$? Question states: "Let $D_n$ denote the determinant of the $n$-by-$n$ matrix whose $(i,j)$th element (the element in the $i$th row and $j$th column) is the absolute value of the difference between $i$ and $j$. Show that $D_n = (-1)^{n-1}(n-1)2^{n-2}$."  It seems like that I can get a recurrence relation (especially the question was from a book chapter dealing with recursion). In trying to get a recurrence relation, here is what I have done so far:  (Let $R_k$ denote the $k$th row and let $(i,j)$ denote the element/spot of $i$th row and $j$th spot)  1) replace $R_1$ with $R_1-(R_2+R_{n-1})$ to get $R_1^*$  2) replace $R_1^*$ with $R_1^*+R_{n-2}$  3) If I am not mistaken, I should have $-2$ on $(1,1)$, $2$ on both $(1,n-1)$ and $(1,n)$, and all other element in the first row as $0$.  4) take out $2$ from the first row, and expand the determinant about the first row  5) I should have $D_n=2(-D_{n-1}+(-1)^n B_{n-1})$, where $B_{n-1}$ is the determinant of a not-easily-reducible mayrix whose last column consists of $n-1$ ones followed by one $-1$.  How should I go about from now on? Once I get a recurrence relation, it would be pretty easy to get the explicit formula for $D_n$ using induction.  P.S. This question apparently is a question taken from 1969 Putnam Competition