I'm trying to create a virtual machine to follow a course and I don't have much practice in Ubuntu. The machine in this case is VMWare Workstation and I don't know exactly how to do it.  I have seen several questions about this on this site, but they are old and from very earlier versions of Ubuntu. Is there any new way to install this machine on my PC?
I can't install VMwarePlayer 4.0.3 on Ubuntu 12.04 64Bit. For Version 4.0.2, I found a script that I have to run to patch VMware Player for it to work on my system to properly, and after that I could install 4.0.2.  Is there an similar solution for Version 4.0.3?
How can I set an external display (monitor) as the primary one? Currently the MacBook's display works as primary, so every application I open gets open on the 13" and I have to drag it to the 24". I also don't have access to the dock on my 24".  Is is possible to turn off the MacBook screen and use only the one attached via DVI?  (I've just connected my 24" HP LP2475w via Mini DisplayPort to DVI to my MacBook Pro 13", which works great except for this one thing.) Is there a term for when just by saying that something is broken and showing it to someone fixes the issue? This seems to be a common enough occurrence that it would merit its own phrase. I imagine it might be some sort of subset of Murphy's Law. But it's specific enough that Murphy's Law doesn't quite address it.  Do you know when you are banging your head against a wall for hours trying to fix something? And then when you finally give up and try to get someone else to come fix it (or even just look at it to see that it's broken), it's working perfectly as if nothing had ever happened? And at this point, you're just trying to convince the other person that it was broken in the first place.  It'd at least take some of the frustration out of the experience if you could both just laugh about &lt;insert the phrase for it here&gt;. But as it is now, I basically have to go through the whole paragraph above to say it, and at that point the joke is kind of lost. Which graphics cards are supported by the new AMDGPU driver in Ubuntu 16.04? I've read that abelian categories can naturally be enriched in $\mathbf{Ab}.$ How does this actually work? Wikipedia defines the notion of an abelian category as follows ().     A category is abelian iff         it has a zero object,   it has all binary products and binary coproducts, and   it has all kernels and cokernels.   all monomorphisms and epimorphisms are normal.      It later explains that an abelian category can naturally be enriched in $\mathbf{Ab},$ as a result of the first three axioms above.  How does this actually work? When reviewing flags, either from the queue or from the flagged post, I often want to know what the flagger could have done in addition to, or instead of, flagging for mod attention.  Does he have the rep to downvote?  To comment?  To vote to delete?  Knowing this doesn't necessarily affect how I handle the flag, but if there's a possible teaching moment there I use the flag response to point it out.  But I can't find this out unless I click through to the user's profile (unless I already know this user, of course).  Would it be possible to get the flagger's reputation in a tooltip, like what's already done for comments? What is the difference between logistic regression and Fractional response regression? As far as I know, the difference between logistic model and fractional response model (frm) is that the dependent variable (Y) in which frm is [0,1], but logistic is {0, 1}. Further, frm uses the quasi-likelihood estimator to determine its parameters. Normally, we can use glm to obtain the logistic models by glm(y ~ x1+x2, data = dat, family = binomial(logit)). For frm, we change family = binomial(logit) to family = quasibinomial(logit). I noticed we can also use family = binomial(logit) to obtain frm's parameter since it gives the same estimated values. See the following example library(foreign) mydata &lt;- read.dta(&quot;k401.dta&quot;)   glm.bin &lt;- glm(prate ~ mrate + age + sole + totemp,                 data = mydata, family = binomial('logit')) summary(glm.bin)  return,  Call: glm(formula = prate ~ mrate + age + sole + totemp,      family = binomial(&quot;logit&quot;),      data = mydata)  Deviance Residuals:      Min       1Q   Median       3Q      Max   -3.1214  -0.1979   0.2059   0.4486   0.9146    Coefficients:               Estimate Std. Error z value Pr(&gt;|z|)     (Intercept)  1.074e+00  8.869e-02  12.110  &lt; 2e-16 *** mrate        5.734e-01  9.011e-02   6.364 1.97e-10 *** age          3.089e-02  5.832e-03   5.297 1.17e-07 *** sole         3.636e-01  9.491e-02   3.831 0.000128 *** totemp      -5.780e-06  2.207e-06  -2.619 0.008814 **  --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  (Dispersion parameter for binomial family taken to be 1)      Null deviance: 1166.6  on 4733  degrees of freedom Residual deviance: 1023.7  on 4729  degrees of freedom AIC: 1997.6  Number of Fisher Scoring iterations: 6  And for family = quasibinomial('logit'), glm.quasi &lt;- glm(prate ~ mrate + age + sole + totemp,   data = mydata ,family = quasibinomial('logit')) summary(glm.quasi)  return,  Call: glm(formula = prate ~ mrate + age + sole + totemp,      family = quasibinomial(&quot;logit&quot;),      data = mydata)  Deviance Residuals:      Min       1Q   Median       3Q      Max   -3.1214  -0.1979   0.2059   0.4486   0.9146    Coefficients:               Estimate Std. Error t value Pr(&gt;|t|)     (Intercept)  1.074e+00  4.788e-02  22.435  &lt; 2e-16 *** mrate        5.734e-01  4.864e-02  11.789  &lt; 2e-16 *** age          3.089e-02  3.148e-03   9.814  &lt; 2e-16 *** sole         3.636e-01  5.123e-02   7.097 1.46e-12 *** totemp      -5.780e-06  1.191e-06  -4.852 1.26e-06 *** --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  (Dispersion parameter for quasibinomial family taken to be 0.2913876)      Null deviance: 1166.6  on 4733  degrees of freedom Residual deviance: 1023.7  on 4729  degrees of freedom AIC: NA  Number of Fisher Scoring iterations: 6  The estimated Beta from both `family` are the same, but the difference is the SE values.  However, to obtain the correct SE, we have to use `library(sandwich)` as in this [post][1].  Now, my questions:  1. What is the difference between these two codes? 2. Is frm about to obtain robust SE?  If my understanding is not correct, please give some suggestions.      [1]: https://stackoverflow.com/questions/37584715/fractional-response-regression-in-r Printing a .NET DataGridView I am fairly new to .NET and C#, but I have a DataGridView that I would like to print.  What would be the best way to go about doing so? What did Auggie's father give to his wife in the movie Wonder? There is a scene roughly in the last third of Wonder where Auggie's parents Nate and Isabel (Owen Wilson and Julia Roberts) spend an evening together while the kids are out. Nate has a surprise gift for his wife. She opens the box just enough to see it, laughs, and closes it again. So I asked myself the question:  What's in the box? I want to prove  \begin{equation*} \tan A  + \tan B + \tan C = \tan A\tan B\tan C \quad\text{when } A+B+C = 180^\circ \end{equation*}  We know that   \begin{equation*} \tan(A+B) = \frac{\tan A+\tan B}{1-\tan A\tan B}~\text{and that}~A+B = 180^\circ-C. \end{equation*}  Therefore $\tan(A+B) = -\tan C.$ From here, I get stuck. Please help. Defender of the Realm hat broken, or just badly worded? Description of the hat unlock requirement:     at least 5 flags dismissed as helpful and at most 20% of non-disputed flags declined   Does "dismissed" mean something unusual here, or is this hat not unlocking properly? I'm not sure if that means "since winter bash started" or "since your account was created": if the former, I've flagged 8 items so far today, of which 6 were marked "helpful" (the other two are still active; none have been disputed or declined). If the latter, the flag page indicates I've flagged 391 items (plus 6 for spam), of which 1 was declined (which incidentally, I assume that was by accident, given that the question was closed soon after for the reason I flagged it for), 1 was disputed (that one was legitimate), and 21 are still open. That is definitely way under 20%.  So what's up with that unlock?  edit: it appears to be the case (further edit: this has now been confirmed first-hand) that this hat unlock disregards any flags that are the flag equivalent of voting to close. I put forth that if this is intended behavior, well, it shouldn't be (if it's to equalize the playing field for over-3k-rep people, it should just also count votes-to-close. Though granted, I suppose in the scheme of things it really doesn't matter much, as it'll all go away in a couple weeks anyway. But dang it, I want to show off all the flagging I do! :p) Finding centrelines from polygons in QGIS? I was wondering if there is a way to create centre lines from polygons in QGIS? I have a polygon layer, but ideally need the centrelines as a separate file. Using a question mark mid-sentence May I use a question mark in the middle of a sentence? Examples:  Would you like the drapes to be white? or perhaps something off-white? Would you like the logo to be centered? at the bottom? left off entirely? Is it a good practice to place C++ definitions in header files? My personal style with C++ has always to put class declarations in an include file, and definitions in a .cpp file, very much like stipulated in . Admittedly, part of the reason I like this style probably has to do with all the years I spent coding Modula-2 and Ada, both of which have a similar scheme with specification files and body files. I have a coworker, much more knowledgeable in C++ than I, who is insisting that all C++ declarations should, where possible, include the definitions right there in the header file. He's not saying this is a valid alternate style, or even a slightly better style, but rather this is the new universally-accepted style that everyone is now using for C++. I'm not as limber as I used to be, so I'm not really anxious to scrabble up onto this bandwagon of his until I see a few more people up there with him. So how common is this idiom really? Just to give some structure to the answers: Is it now The Way™, very common, somewhat common, uncommon, or bug-out crazy? What does "may they rot there" mean? How can i integrate one SFDC org to another SFDC using Rest Api I am trying to integrate one Salesforce org to other org by using Oauth setup, I wanted to use  use consumer key and consumer secret key in my REST class to connect with the org, after connection part completion, I want to access Get(), Put(), Post(), etc. Including the ability to set Oauth and Authorization headers needed for Salesforce Rest API calls.  Actually I'm new in REST implementation so can you please explain me by using code samples. I am interested in determining the ages of all 70+ my servers. I would like to create a growth graph showing when servers and databases were added to the environment either/both monthly or annually. I executed the following query using the SSMS multi-query feature with only partial success.  SELECT [name], create_date FROM sys.databases   It's partial success because the master and model databases return with a date of 'April 8, 2003' when I know that I created some of these servers during the past couple years.  I refresh databases from one server to another several times a week, which appears to be causing issues with the database create date.   Is there a simple method to determine the actual create date for both servers and databases? Baryons have charges that are the result of a polynomial calculation of their building blocks (quarks)'s fractional charges. But what gives these quarks electric charges? What interactions do they have with photons? And what about leptons, like muons and electrons? How do they get their -1 charge? And then, how do positrons and anti-muons get +1 charge? Same goes for quarks: how does up-antiquarks get -2/3 charge? Or I may want to formulate my question this way:  How does any elementary particle interact with the EM-Force to get an electric charge? Yesterday I upgraded my Ubuntu 18.10 to Ubuntu 19.04, and after the restart, the trash icon and my Desktop files have disappeared from the UI. If I go to the Desktop folder from my personal folder, I can see the files, but my Desktop is empty.  How can I show my files in the Desktop again? Is there an optimal loss function for dealing with imbalanced classes? I'm aware that there are many ways of dealing with datasets where there is a strong class imbalance in the target variable: downsampling the more prevalent and less important class, over-weighting the valuable minority class, etc. Are there any loss functions that are ideally suited for these types of problems? I've heard of AUC, but AUC sounds like a means of evaluating a model once its training is complete (correct me if I'm wrong). Log loss and squared loss penalize a model's over confidence, but overconfidence and class imbalance seem unrelated. Is that true? Why Re-throw Exceptions? I've seen the following code many times:  try {     ... // some code } catch (Exception ex) {     ... // Do something     throw new CustomException(ex);      // or     // throw;      // or     // throw ex; }   Can you please explain the purpose of re-throwing an exception? Is it following a pattern/best practice in exception handling? (I've read somewhere that it's called "Caller Inform" pattern?)