I am at a loss of how to clear up system files manually on a 2017 MBP. Upon running du -h -d 1 I get;    Now the private folder is way too big and I am cautious to clear that out. I know I could clear the private/var files to an extent but want to try and avoid that. The user caches say they are  only taking up 7.3GB, after running du -sh ~/Library/Caches.   Any guesses of where/what I can purge to get this system's storage down? Any help is greatly appreciated.
Every few days I get notices on my MacBook that it's running or run out of hard drive space. Curiously, restarting the computer will enable me to recover gigabytes of space (this past time, it was able to recover about 2.2GB). However, I can't identify anything in my personal activity that consumed that space.  It's possible that it's a rogue iTunes podcast or a huge software update that my Mac is automatically downloading - would either of these reclaim the space upon a restart?  One possibility that I can think of is that FileVault has some sort of disk leak, allocating but not freeing files. Does this make sense? Is there a tool that I can run to determine where this space is going? Assuming it is FileVault, should I try to disable it? What's the best way to turn of FileVault on a nearly full computer?
Removed Python 3 and now Ubuntu Software Center, terminal and other applications don't work I want to implement the EM algorithm manually and then compare it to the results of the normalmixEM of mixtools package. Of course, I would be happy if they both lead to the same results. The main reference is Geoffrey McLachlan (2000), .  I have a mixture density of two Gaussians, in general form, the log-likelihood is given by (McLachlan page 48):      $$ \log L_c(\Psi) = \sum_{i=1}^g \sum_{j=1}^n z_{ij}\{\log \pi_i + \log f_i(y_i;\theta_i)\}. $$ The $z_{ij}$ are $1$, if the observation was from the $i$th component density, otherwise $0$. The $f_i$ is the density of the normal distribution. The $\pi$ is the mixture proportion, so $\pi_1$ is the probability, that an observation is from the first Gaussian distribution and $\pi_2$ is the probability, that an observation is from the second Gaussian distribution.   The E step is now, calculation of the conditional expectation:      $$ Q(\Psi;\Psi^{(0)}) = E_{\Psi(0)}\{\log L_c(|\Psi)|y\}. $$ which leads, after a few derivations to the result (page 49):      \begin{align} \tau_i(y_j;\Psi^{(k)}) &amp;= \frac{\pi_i^{(k)}f_i(y_j;\theta_i^{(k)}}{f(y_j;\Psi^{(k)}}  \\[8pt]                        &amp;= \frac{\pi_i^{(k)}f_i(y_j;\theta_i^{(k)}}{\sum_{h=1}^g \pi_h^{(k)}f_h(y_j;\theta_h^{(k)})} \end{align} in the case of two Gaussians (page 82):      $$ \tau_i(y_j;\Psi) = \frac{\pi_i \phi(y_j;\mu_i,\Sigma_i)}{\sum_{h=1}^g \pi_h\phi(y_j; \mu_h,\Sigma_h)} $$ The M step is now the maximization of Q (page 49):      $$ Q(\Psi;\Psi^{(k)}) = \sum_{i=1}^g\sum_{j=1}^n\tau_i(y_j;\Psi^{(k)})\{\log \pi_i + \log f_i(y_j;\theta_i)\}. $$ This leads to (in the case of two Gaussians) (page 82):      \begin{align} \mu_i^{(k+1)} &amp;= \frac{\sum_{j=1}^n \tau_{ij}^{(k)}y_j}{\sum_{j=1}^n \tau_{ij}^{(k)}}  \\[8pt] \Sigma_i^{(k+1)} &amp;= \frac{\sum_{j=1}^n \tau_{ij}^{(k)}(y_j - \mu_i^{(k+1)})(y_j - \mu_i^{(k+1)})^T}{\sum_{j=1}^n \tau_{ij}^{(k)}} \end{align} and we know that (p. 50)      $$ \pi_i^{(k+1)} = \frac{\sum_{j=1}^n \tau_i(y_j;\Psi^{(k)})}{n}\qquad (i = 1, \ldots, g). $$ We repeat the E, M steps until $L(\Psi^{(k+1)})-L(\Psi^{(k)})$ is small.        I tried to write a R code (data can be found ).    # EM algorithm manually # dat is the data  # initial values pi1       &lt;-  0.5 pi2       &lt;-  0.5 mu1       &lt;- -0.01 mu2       &lt;-  0.01 sigma1    &lt;-  0.01 sigma2    &lt;-  0.02 loglik[1] &lt;-  0 loglik[2] &lt;- sum(pi1*(log(pi1) + log(dnorm(dat,mu1,sigma1)))) +               sum(pi2*(log(pi2) + log(dnorm(dat,mu2,sigma2))))  tau1 &lt;- 0 tau2 &lt;- 0 k    &lt;- 1  # loop while(abs(loglik[k+1]-loglik[k]) &gt;= 0.00001) {    # E step   tau1 &lt;- pi1*dnorm(dat,mean=mu1,sd=sigma1)/(pi1*dnorm(x,mean=mu1,sd=sigma1) +            pi2*dnorm(dat,mean=mu2,sd=sigma2))   tau2 &lt;- pi2*dnorm(dat,mean=mu2,sd=sigma2)/(pi1*dnorm(x,mean=mu1,sd=sigma1) +            pi2*dnorm(dat,mean=mu2,sd=sigma2))    # M step   pi1 &lt;- sum(tau1)/length(dat)   pi2 &lt;- sum(tau2)/length(dat)    mu1 &lt;- sum(tau1*x)/sum(tau1)   mu2 &lt;- sum(tau2*x)/sum(tau2)    sigma1 &lt;- sum(tau1*(x-mu1)^2)/sum(tau1)   sigma2 &lt;- sum(tau2*(x-mu2)^2)/sum(tau2)    loglik[k] &lt;- sum(tau1*(log(pi1) + log(dnorm(x,mu1,sigma1)))) +                 sum(tau2*(log(pi2) + log(dnorm(x,mu2,sigma2))))   k         &lt;- k+1 }   # compare library(mixtools) gm &lt;- normalmixEM(x, k=2, lambda=c(0.5,0.5), mu=c(-0.01,0.01), sigma=c(0.01,0.02)) gm$lambda gm$mu gm$sigma  gm$loglik   The algorithm is not working, since some observations have the likelihood of zero and the log of this is -Inf. Where is my mistake? How can I enable multiple users login at a time in remote system? Recently we bought dedicated server with Windows Server 2012 Standard.It's allowing 2 people at a time.So I want to allow more people at a time.  How can I do this? The Setup: Let's say we want to study a Euclidean $\mathrm{CFT}_2$ on $\mathbb R^2$ with coordinates $\sigma^1$ and $\sigma^2$ and metric   $ds^2 = (d\sigma^1)^2+(d\sigma^2)^2$.    It seems to me that in the usual discussion (e.g. di Francesco, Ginsparg, Polchinski), one proceeds to consider an analytic continuation of the CFT to $\mathbb C^2$ with coordinates $z^1, z^2$ and complex metric  $ds^2 = (dz^1)^2+(dz^2)^2$  and then, one performs the coordinate transformation $z = z^1+iz^2$ and $\bar z = z^1-iz^2$.  In this way the coordinates $z$ and $\bar z$ can be considered "independent" because they are coordinates on a complex two-dimensional manifold.  Also, in these coordinates the metric becomes  $ds^2 = dz\,d\bar z$  and it becomes clear that conformal mappings consist of mappings: $(z, \bar z)\to (f(z), g(\bar z))$.  My confusion is this: Since our original theory was on $\mathbb R^2$, books say that when we do calculations, we should consider the physical theory as living on the copy of $\mathbb R^2$ embedded in $\mathbb C^2$ given by the condition $\bar z = z^*$.  But consider the mapping $(z, \bar z)\to (z^2, \bar z)$.  This is a conformal mapping on $\mathbb C^2$, but it does not map the surface $\bar z = z^*$ to itself; for example the point $(z, \bar z)=(2,2)$ gets mapped to the point $(z^2, \bar z) =(4,2)$ and $2$ is clearly not equal to $4^*$.  In particular, it seems to me that analytic continuation to a CFT on $\mathbb C^2$ enlarges the set of mappings one can have, so what relevance does it really have to the original CFT on $\mathbb R^2$? Creating Layer in GeoServer using REST As part of a possible solution to   I want create a layer in GeoServer via REST that supplies a SQL statement along with a userid. I think i would  and publish it. I need to do this all in REST. Does anyone have any code examples? How To Reduce Noise In Cycles Render So this is my first try with cycles and I was wondering what can I do to make the image clearer? Cardinalities of the intervals $(-1,1)$ and $[-1,1]$ Shutdown button only logs out ubuntu 15.04 Text to Speech shortcuts with two languages What are $x$, $y$ and $z$ if $\frac{x}{y + z} + \frac{y}{x + z} + \frac{z}{x + y} = 4$ and $x$, $y$ and $z$ are whole numbers? What are $x$, $y$ and $z$ if $$\dfrac{x}{y + z} + \dfrac{y}{x + z} + \dfrac{z}{x + y} = 4$$ and $x$, $y$ and $z$ are whole numbers?  MY ATTEMPT  Let $u = x + y + z$.  Then the equation can be rewritten as $$\dfrac{x}{u - x} + \dfrac{y}{u - y} + \dfrac{z}{u - z} = 4$$  Suppose I set $$1 = \dfrac{x}{u - x} = \dfrac{y}{u - y}$$ and $$2 = \dfrac{z}{u - z}.$$  Then I get $$x = y + z$$ $$y = x + z$$ $$z = 2(x + y),$$ so that $$z = 0 = x + y,$$ which is impossible.  Next, suppose I set $$\dfrac{4}{3} = \dfrac{x}{u - x} = \dfrac{y}{u - y} = \dfrac{z}{u - z}.$$  Then I get $$4(u - x) = 3x$$ $$4(u - y) = 3y$$ $$4(u - z) = 3z$$ so that $$12u - 4(x + y + z) = 3(x + y + z)$$ which implies that $$12u = 7(x + y + z) = 7u$$ from which it follows that $$u = 0.$$ This is, again, impossible.  Alas, here is where I get stuck.  Any hint(s) will be appreciated. I am trying to figure out how can I disable/hide the App Name in MacOS X Lion dock. I've also attached an image so you can see what I mean.    Someone has any idea about how can I hide that? How do you get the index of the current iteration of a foreach loop? Is there some rare language construct I haven't encountered (like the few I've learned recently, some on Stack Overflow) in C# to get a value representing the current iteration of a foreach loop?  For instance, I currently do something like this depending on the circumstances:  int i = 0; foreach (Object o in collection) {     // ...     i++; } In classical logic, why is $(p\Rightarrow q)$ True if both $p$ and $q$ are False? What is the difference between a teaching assistant and an instructor? It seems to me that the terms "Teaching Assistant" and "Instructor" refer to a variety of positions. At some places, a teaching assistant is responsible for things like helping the actual lecturer by handing out papers, grading homework, etc., and instructors hold recitation sessions.  At other places, I saw the term "instructor" referring to the lecturer giving the course, while a teaching assistant is the person doing anything else (recitations, grading etc.).  Is there some widely accepted definition of the two positions?  For context: The question arose because I wasn't sure whether I'm using the correct terms in my CV -- I am a math graduate student, and I would like to make a distinction between jobs in which I only graded course assignments/final exams, and courses in which I held recitation classes* (and also participated in grading the final exams). Is it OK to use "Instructor" for the latter? What should the former be referred to as?  *In the course I'm currently teaching, the recitations are planned and written by the ones giving them (without the professors' supervision). Also, the people giving the recitations are not necessarily grad students (some already hold a PhD). I'm elaborating on that because from what I've seen, some of it could be relevant for the definition of the job. Creating a gradient-based legend I have a map with graduated symbology, with 328 unique values. I would like to add a legend to my map (as in the picture), illustrating that light blue indicates low values and dark blue high values.  I have done this in ArcGIS before. Is there a way to do this in QGIS as well? Let $I = \{a +ib \in \Bbb Z[i] : a$ and $b$ are both multiple of $5\}$. Let $I = \{a +ib \in \Bbb Z[i] : a$ and $b$ are both multiple of $5\}$. Show that $I$ is an ideal of $\Bbb Z[i]$. Is $I$ a maximal ideal? And to find the numbers of elements of the quotient ring $\Bbb Z[i]/ I$.  I have shown that $I$ is an ideal of $\Bbb Z[i]$. But how to verify that $I$ a maximal ideal or not?   And to find the numbers of elements of the quotient ring $\Bbb Z[i]/ I$.   Is there any general way to verify when  $I = \{a +ib \in \Bbb Z[i] : a$ and $b$ are both multiple of $n\}$ will be maximal or not? This is by far the weirdest problem I've come across,  My mac can perfectly access internet through safari web browser, but when I tried to do   ping www.google.com   through the terminal, it's requests is being timed out.  None of the other apps are able to reach internet either. Dropbox, Skype, Spotify all showing offline, except the browser itself  I'm guessing something bad with the DNS, but spend 2 hours trying to fix this with no luck I've written a few questions on Stack Overflow before that have been closed due to being "not constructive" or "not a real question".  Now, after scanning the FAQ for the site a few times, I understand that my questions were indeed closed for good reason.  However, even after reading the FAQ, I still don't understand why a question of "what's the best practice here?" is a bad thing.  I feel as though if you properly explain your situation as thoroughly as possible, then it shouldn't be a bad question at all.  Questions like "what's the best language?" or "which framework should I use?" are indeed bad questions initially, but I feel if you specify in the post (or preferably in the title itself) what the context is, shouldn't that be deserving of some kind of an answer?  In  I asked what would be "best practice", and naturally my question was closed.  So I read the FAQ and learned how to make a more constructive question, of which I've now re-edited in an attempt to be less vague.  I understand the desire to avoid debate and lengthy discussion over a question, but I also feel as though sometimes there are certain questions which should be asked if proper context is given.  Why is a question over "best practice" always a bad question to ask? I have a quick question. Looking at the next GIF that I made, what is the quickier way you can come up with to delete the excess material that goes beyond the wall? It is basically the attachment of the handrail to the wall what is giving me this "problem".    My solution would be using the boolean modifier with a cube or something, so obviously I know how to do it. But I'm looking for the best solution, i.e., does Blender let me select the excess material in any way? For example, is there a quick way to intersect those planes? I read about intersecting planes in Blender and seems like a difficult task (not worth it in this case). So I discarded that solution.  Thanks. Basically I have a setup like the following:  Array (  [0] =&gt; Array ( [0] =&gt; stdClass Object ( [nid] =&gt; 1 [title] =&gt; title1 [uid] =&gt; 1 [parent] =&gt; 0 [weight] =&gt; -15 [name] =&gt; name1 [value] =&gt; 0 )                [1] =&gt; stdClass Object ( [nid] =&gt; 2 [title] =&gt; title2 [uid] =&gt; 1 [parent] =&gt; 0 [weight] =&gt; -7 [name] =&gt; name2 [value] =&gt; 100 )                [2] =&gt; stdClass Object ( [nid] =&gt; 3 [title] =&gt; title3 [uid] =&gt; 2 [parent] =&gt; 0 [weight] =&gt; -1 [name] =&gt; name3 [value] =&gt; 0 )                [3] =&gt; stdClass Object ( [nid] =&gt; 4 [title] =&gt; title4 [uid] =&gt; 2 [parent] =&gt; 0 [weight] =&gt; 1 [name] =&gt; name4 [value] =&gt; 80 )               )   )   What I need is a way to sort all the arrays inside the parent array by the [value] key in the Object. I've been trying for about 2 days now with usort and different methods but I just can't seem to get my head around it. The [value] key will range anywhere from 0 to 100 and I need all of the arrays sorted in decreasing order (IE: 100 down to 0).