I want to open files inside the terminal, like with vim or whatever, but I have no idea how. For example, instead of opening a .js file with atom, now I open it inside the terminal with vim. Any ideas?  I think you could use the Appify script, but I don't know how to make it work with opening files. This would mean that you open the file by double clicking on it in finder, and opening it into terminal.
I have defined my own custom vim file type with highlighting etc.  I would like to open it using the terminal based vim when I double click on it.  I am using mac os x.  Any pointers on how to start on this?
Ubuntu 16.10 Dual Boot error - 'grub-efi-amd64-signed' package failed to install What is a disputed flag? In my flagging summary under the statistics, there is 1 flag listed as "disputed".  This is the first time I've ever seen a disputed flag in my summary, so I'm just curious, what is a disputed flag? How would you even dispute a flag? Is this the same as voting a flag as invalid? How do the Chitauri "ships" propel themselves? In the 2012 The Avengers film, the Chitauri army arrives through the portal along with these big robot alien whale Chitauri dudes. Here's one chasing Iron Man:  These guys basically swim through the air like... giant robot alien whales. I don't see any means of propulsion. Other, more humanoid Chitauri soldiers fly around on things that seem to be mechanical &quot;speeders&quot; of sorts. What are these guys? Are they ships, creatures, or both? Is there an explanation anywhere in the Avengers universe for how they defy gravity and swim through the air? What is a 'Closure'? I asked a question about Currying and closures were mentioned. What is a closure? How does it relate to currying? Compare two dates with JavaScript Show an exponential function has a valid density. Given:  Let $X$ be exponential with parameter $\lambda$, that is   $$ f_X(x) = \begin{cases} \lambda e^{-\lambda x} &amp; \text{if }x&gt; 0, \\ 0 &amp;\text{for }x\leq 0. \end{cases} $$  where $\lambda&gt;0$ is called the rate of the distribution.  Question:  Show that this is a valid probability density function (pdf).  Attempt:  Need to show that  $$ f(x) = \int^{\infty}_{-\infty} \lambda e^{-\lambda x}\,  dx=1\\\\ $$ Thus, \begin{eqnarray*} f(x)&amp;=&amp;\int^0_{-\infty} \lambda e^{-\lambda x} \, dx+\int^\infty_0 \lambda e^{-\lambda x} \,  dx\\[8pt] &amp;=&amp;0+\int^\infty_0 \lambda e^{-\lambda x} \, dx \\[8pt] &amp;=&amp;\lambda\int^\infty_0 e^{-\lambda x} \, dx \\[8pt] &amp;=&amp;1 \end{eqnarray*}  The problem is that my professor just told me that I skip a step right before I derive $1$. Any insight?  EDIT:  Given the great feedback, here is the answer:  \begin{eqnarray*} f(x)&amp;=&amp;\int^{\infty}_{-\infty} \lambda e^{-\lambda x} dx=1\\\\ f(x)&amp;=&amp;\int^{\infty}_{-\infty} f_X(x)dx\\ &amp;=&amp;\int^{0}_{-\infty} 0\,\,\, dx+\int^{\infty}_{0} \lambda e^{-\lambda x} dx\\ &amp;=&amp;0+\int^{\infty}_{0} \lambda e^{-\lambda x} dx\\ &amp;=&amp;\int^{\infty}_{0} \lambda e^{-\lambda x} dx\\ &amp;=&amp;\int^{\infty}_{0} e^{-\lambda x} \Big(\lambda \,\,\,dx\Big)\\ &amp;=&amp;\int^\infty_0e^{-u} du\\ &amp;=&amp;-e^{-u}\Big|^{\infty}_0\\ &amp;=&amp;1-\lim _{x \to \infty} e^{-u}\\ &amp;=&amp;1\\ \end{eqnarray*} I had this question:    All 3 responses were rated at 1 when the bounty expired. Nothing got selected as the "best answer", and I can't even manually select an answer. Where is this picture from? How do I use Reverse Image Search to find the source of an anime/manga image? So I see an image that I believe is from either an anime or a manga. What are some ways that I can go about finding what series it's from? Try these options:   (browser built-in support and plugins)        Note: Please note that as of May 9, 2016, ALL  questions are now . Therefore, you can't ask an identification request question on this site. However, such questions are still welcome  for users with at least  (globally on StackExchange).    Protip: If you are using Google Image Search in a non-English language,  or just use  for better, more accurate results. Show that $E(XE[X|G])=E[(E[X|G)^2]$ How to hide notification center button in Mountain Lion? I am using Mountain Lion.  The only advantage (for me) over the gesture is that Option + clicking the button enables/disables showing alerts and banners (toggles the switch in the notifications center).  Is there a way to hide the button in the status bar that opens notification center? I am trying to make a callout to AWS S3 using named credentials and Apex  The named credential is set up as follows  Label: AWS S3 Name: AWS_S3 URL: https://bucket-name.s3.amazonaws.com - Certificate: Identity Type: Named Principal Authentication Protocol: AWS Signature Version 4 AWS Access Key: AKIAxxxxxx AWS Secret Access Key: xxxxxx AWS Region: ap-southeast-2 AWS Service: s3 - Generate Authorization header: true Merge fields in header: false Merge fields in body: false   The Apex class is very simple  HttpRequest req = new HttpRequest(); req.setEndpoint('callout:AWS_S3'); req.setMethod('GET');                        Http http = new Http(); HTTPResponse res = http.send(req);                 System.debug(res.getBody()); return res.getBody();   The response body contains the following:     SignatureDoesNotMatchThe request signature we calculated does not match the signature you provided. Check your key and signing method.AKIAxxxxx   I have used the same bucket, endpoint and credentials using Postman and am able to successfully return the list of objects in the bucket so it is not an IAM permissions issue  There have been a couple of similar questions on stackexchange but unfortunately they do not provide any resolution or assistance in this case:    I've tried looking for code samples or further pointers in the Apex documentation but it doesn't really give any further guidance on how to proceed or correctly set this up so I'm a bit stuck Underscore doesn't work in Coffeescript's console Information about (simple) mask wearing (concerning covid19) is a complete mystery to me. On several official places it is not recommended for a person without symptoms to wear a mask. For example:    (time 0:20)  or here:    However no explanation is given - which makes me wonder (and even angry). I think everybody should wear a mask because:   Many persons feel ashamed wearing it, even those with symptoms. If everybody wears it, they do not feel ashamed and wear it. As far as I know, one is (wrt covid19) contagious before developing symptoms. So if everybody wears the mask also these people do.   The two above points act as a collective protection.   Simple mask certainly will lower "getting / spreading illness" probability. Of course the "holes" (in a simple mask) are too big to prevent completely virus to enter (or get out when coughing), but it lowers probability! Even if it lowers the transmission probability by e.g. 5%, it might be a lot. As a hypothetical example: it might reduce R0 from 1.02 to 0.97 and so stop the virus spread so fast.   The videos are full of self-contradiction. In the same video    time 0:50 the lady says I should wear a mask if I am in contact with an infected person... why if it is inefficient?  Question: What are reasons for not recommending wearing a mask? I cant use lhopital's rule here is my attempt:  Limit of $(\frac{n^{2}-2n+1}{n^{2}-4n+2})^{n}$ =$e^{\lim_{n\to \infty} n\times \ln(\frac{1 -2-n +\frac{1}{n^{2}}}{1 -\frac{4}{n} +\frac{2}{n^{2}}})}$ I got stuck here How to prove that a nilpotent operator has a basis representation that is strictly upper triangular? Computational complexity of Fibonacci Sequence I understand Big-O notation, but I don't know how to calculate it for many functions. In particular, I've been trying to figure out the computational complexity of the naive version of the Fibonacci sequence:  int Fibonacci(int n) {     if (n &lt;= 1)         return n;     else         return Fibonacci(n - 1) + Fibonacci(n - 2); }   What is the computational complexity of the Fibonacci sequence and how is it calculated? I read that this is because the mean and variance completely specify a normal distribution. However, e.g. for a Poisson distribution the mean, variance and third moment can all be expressed with the same parameter lambda. Is this not what it means to 'completely specify' a distribution?  What is an example of two Poisson distributions having the same mean, variance and different higher moments? If we treated weak stationary as if it was strict stationarity, what would happen when we try to do time series analysis? I'm attempting to do this in a procedure:  DECLARE @a bit = 1; BEGIN     SELECT * INTO #aTemp FROM OPENROWSET( ... );      IF @a = 0     BEGIN         SELECT ... INTO #bTemp FROM #aTemp;     END     ELSE     BEGIN         SELECT ... INTO #bTemp FROM #aTemp;     END END   I get the error:  Msg 2714, Level 16, State 1, Line 10 There is already an object named '#bTemp' in the database.   Why is this happening and is there a work around?  Update  I've attempted to add a DROP statement as suggested , but it still does not work:  DECLARE @a bit = 1; BEGIN     SELECT * INTO #aTemp FROM OPENROWSET( ... );      IF @a = 0     BEGIN         IF OBJECT_ID('[tempdb]..#bTemp') IS NOT NULL         BEGIN             DROP TABLE #bTemp;         END          SELECT ... INTO #bTemp FROM #aTemp;     END     ELSE     BEGIN         IF OBJECT_ID('[tempdb]..#bTemp') IS NOT NULL         BEGIN             DROP TABLE #bTemp;         END          SELECT ... INTO #bTemp FROM #aTemp;     END END Why does Vader live on Mustafar? In Rogue One, we get our first glimpse of Darth Vader's primary residence - a castle on Mustafar.  Given the freedom to choose any planet in the galaxy as their new home, I don't think many people would pick the place where they had three limbs chopped off, fell into a lava flow, and were burned alive, but this appears to be what Vader did.   Why does Vader live on Mustafar of all places? As the title suggests, I have some kit which is 200m from our current infrastructure (outdoors).  What is the cheapest way to establish a reliable connection across a 200m stretch (Cat 5e ethernet only works up to about 100m from our tests)?