How to disable networking from command line without sudo?
How can I disable my internet connection from terminal?
I'm trying to set up file transfer via FileZilla and it doesn't seem to matter what details I put in, I always get the following error:     Status: Connection attempt failed with "ECONNREFUSED - Connection   refused by server". Error: Could not connect to server   My Dad has tried on his computer (with FileZilla on Windows) and it connects and everything is fine.. When I try on mine with all the same details that he put in, it comes up with that error.  I read that a firewall might be blocking it so I double checked and my firewall through system preferences and it is off.  Anybody know why this might be???  Additional info:  Macbook Pro running OS X El Capitan version 10.11.6  FileZilla version 3.23.0.2 Asking users to accept answer when they comment that it answers their question Get terms that contain posts that in turn belong to other terms? So I have custom taxonomy called "shape" and another one called "color". If I want to get the list terms under shape that contain posts that are also present in terms under color, how do I do that?   Example, I have a post under custom post type toy called Ball which is present in both shape Circle and color Red. I want to retrieve the term name Circle via $wpdb query. I'd like to emphasize that I want to retrieve the list of terms and not the posts. Is 225.225.225.128 a valid subnet mask? Which tube size to prefer if several options apply? I have 40-622 (a.k.a. 28x1.5") tires, and  offers  two different sizes of tubes - their models "17" and "19" - as applicable for that tire size.  Ok, either one would surely fit well. But apart from weight difference (150 vs. 220 grams), is there any reason to prefer one over another? Is it better to have as small &amp; light tube as possible? Or perhaps a bit larger and heavier one would be more durable, as it wouldn't be stretched as much? Err on which side? During my attempt to upgrade my Xubuntu 14.04 installation with  sudo apt-get dist-upgrade   I made the mistake of interrupting the process by closing my laptop, which caused it to suspend to disk. After re-opening, the monitor remained black, so I was forced to reboot the system. I have since discovered many failures of drivers (wlan0 missing, USB memory stick cannot be mounted, USB mouse not recognised, and maybe more undiscovered problems with hardware).   My beginner's attempts to manually repair the single problems could have made it even worse. During the installation of the current distribution I chose to encrypt my whole hard disk. Intuition behind using complementary CDF to compute expectation for nonnegative random variables I've read the proof for why $\int_0^\infty P(X &gt;x)dx=E[X]$ for nonnegative random variables (located ) and understand its mechanics, but I'm having trouble understanding the intuition behind this formula or why it should be the case at all. Does anyone have any insight on this? I bet I'm missing something obvious. How can I monitor the memory usage? I have used top to see the memory usage at the moment. But I would like to monitor the memory usage over a period of time. E.g start monitoring and then execute a few commands, and final stop the monitoring and see how much memory that have been used during the period.  How can I do this on Ubuntu Server?  I guess I could start a cronjob every 5th second or so, and invoke a command that log the current memory usage in a textfile. But what command should I use to get the current memory usage in a format that is easy to log to a text file? If $0$ is the zero-object $ \Longrightarrow F(0) $ is the zero object when $F$ additive I wanted to get a 12 core CPU (Threadripper 1920X) and I wanted to know the max amount of cores Blender can use? How do you split a list into evenly sized chunks? Solving $\cos x=x$ I would like to know how can we solve the equation $\cos x = x$, without graphing. I know that  there would only be one solution, that is obvious, that too in between $0$  and $\frac{\pi}{2}$. Is there any real expression in finite terms [perhaps we call that closed form, I am not sure] that could give $x$ or $\cos x$. Although I have not studied Taylor series, I know that it only gives an infinite series, which is not what I want. I suspect that it could not be done, but can anyone explain me why?  Just for completeness, Wolfram Alpha, gives the approximate answer $x = 0.7390851332151606416553120876738734040134$, but fails to give a exact solution. Radial Schrodinger equation with inverse power law potential Recently I read a  about solving radial Schrodinger equation with inverse power law potential.  Consider the radial Schrodinger equation(simply set $\mu=\hbar=1$):  $$\left(-\frac{1}{2}\Delta+V(\mathbf{r})\right)\psi(\mathbf{r})=E\psi(\mathbf{r}).$$  A  gives a one-dimension equation:  $$-\frac{1}{2}D^2\phi(r)+\left(V(r)+\frac{1}{2}\frac{l(l+1)}{r^2}\right)\phi(r)=E\phi(r),$$  where $D=\dfrac{d}{dr}$, and $l$ is the azimuthal quantum number.  If we only consider the ground state, then $l=0$, so  $$-\frac{1}{2}D^2 \phi(r)+V(r)\phi(r)=E\phi(r).$$  We want to find eigenvalue $E$ such that $\phi(0)=\phi(+\infty)=0$.  The central potential discussed in the paper is of this form:  $$V(r)=\alpha r^{-\beta}.$$  It states (see page 4) that if $\beta&gt;2$ then the potential is repulsive (i.e. $\alpha&gt;0$).  My questions are:    Is this conclusion (i.e. If $\beta&gt;2$ then we must have $\alpha&gt;0$) generally valid in physics? What would happen if $\alpha&lt;0$ and $\beta&gt;2$? Is there 'ground state' in this condition? What about the condition $\alpha&gt;0$ and $\beta=1,2$? I have tried to solve the equation numerically with $\alpha=1,\beta=1,2$, and the ground state energy in this two conditions seem to be $0$, is my result correct?   P.S. When I try to find ground state when  $\alpha=-1,\beta=2$, the energy seem to be $-\infty$, which is qualitatively different from $\alpha=-1,\beta=1$. How do I change my Minecraft username during the 30-day restriction? I need to rename a bunch of files in order to fix their sort order, therefore I need to be able to do a sort of "find and replace" so I can replace chunks of the filenames at a time.  What tools should I use? I prefer GUI but a command line tool recommendation would also be fine. Letter of recommendation from Post-Doc or Professor Nicely force 66 characters per line Fetching all (javascript) global variables in a page When my receiver that I have hooked up to my pc turns on it causes my monitors to turn black is there a way to stop this? I started using Sublime Text 2 a week or so ago and I loved it so much I've spent $60 on it and now want to use it for everything.  Gedit currently has ownership of most of the text file associations. I'd essentially like to replace any association to gedit with sublime-text-2.  Any tips available on bulk association changing? Desktop-neutral methods are preferred.