I tried to make a send request after I stop writing in the search box i don't understand this part of the code  return function(...e){ // i don't understand this line and from where we get ...e         clearTimeout(timeout)         timeout=setTimeout(()=&gt;fn.apply(this,e),time)     }   this debounce function work correctly but I don't understand why we return a function(...e) in it function debounce(fn,time){     let timeout     return function(...e){ // i don't understand this line and from where we get ...e         clearTimeout(timeout)         timeout=setTimeout(()=&gt;fn.apply(this,e),time)     } } searchBox.addEventListener('input',debounce((e)=&gt;{     searchTerm=e.target.value;    loadAllVideo(sortBy,searchTerm)    },500))
How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.
Even though I got banned suspended, I'm able to mark a question as a favorite. Is this functionally correct? Elevated Priviliges for Startup Applications in Windows? Is there any way to configure application that requires administrator privilages (elevation) so it's automatically started with elevated privileges and does not request elevation on every startup?  For example, I have Riva Tuner that always starts with Windows. And it always asks for elevation via UAC. I need Riva Tuner to silently start with elevated privileges and without any message from user account control (without disabling it). I am wanting to find the correlation between two variables: a categorical vegetation variable (with categories 1-4)  and a continuous variable of erosion (with values anywhere between 0.2 and 9). I think I would be required to use a non parametric test to find the correlation, but bit of a newby to stats so could anyone suggest the best test to use? I also wanted to know how sample size can affect these tests, ie with a sample size of 100 or 1000? When in a group chat, if many messages are exchanged between other people in the group, when I check my Whatsapp, the messages are grouped according to sender and not chronologically. I know that my phone isn't the problem as I have recently changed my phone, however, I'm still experiencing the same problem.  I have tried uninstalling and re-installing WhatsApp on my phone, and the same problem still occurs. What is this yellow and white mass inside my red cabbage? If I multiply two numbers, say $3$ and $5$, I know it means add $3$ to itself $5$ times or add $5$ to itself $3$ times.    But If I multiply two matrices, what does it mean ?  I mean I can't think it in terms of repetitive addition.       What is the intuitive way of thinking about multiplication of matrices? How do you send a HEAD HTTP request in Python 2? What I'm trying to do here is get the headers of a given URL so I can determine the MIME type. I want to be able to see if http://somedomain/foo/ will return an HTML document or a JPEG image for example. Thus, I need to figure out how to send a HEAD request so that I can read the MIME type without having to download the content. Does anyone know of an easy way of doing this? I am trying to change the page size in the QGIS 3.0 Composer but I am not able to see the Composition tab.  I have right clicked an empty space in the toolbar but did not see anything about composition.  I am using Windows 7.  I tried looking at the QGIS docs but they are still in testing. What's the purpose of the CIL nop opcode? I'm going through MSIL and noticing there are a lot of  instructions in the MSIL.  The MSDN article says they take no action and are used to fill space if the opcode is patched. They're used a lot more in debug builds than release builds.  I know that these kinds of statements are used in assembly languages to align later instructions, but why are MSIL nops needed in MSIL?  (Editor's note: the accepted answer is about machine-code NOPs, not MSIL/CIL NOPs which the question originally asked about.) How do I add a Pokestop to an area that has none? It is an area where there are tons of businesses but unless I drive about a mile from my work area there are no Pokestops.   I want to add one since we have 1000's of people in the work area, a lot of them play Pokemon Go, and we all can't leave work to drive a mile away to get to a Pokestop area.   Plus it would be nice to be able to capture Pokemon on our breaks. -> 683  -> 678  ???  (Doesn't really bother me too much but figured I'd report the bug...) Is there any way to erase personal information from my phone that has already been stolen? My phone has been stolen. I do not want the thief to have access to any of my personal information such as calls, texts, and information saved in the phones contents. Is there any possible way I can get this information erased from my phone? How can I use an array modifier to create individually manipulatable objects? I often use an array modifier (or two) to quickly create a grid of identical or symmetric objects, which can be really useful when modeling all sorts of man-made objects. Once I've made the grid, though, is there any way for me to make it so that each of the objects are individually manipulatable?  Simply applying the modifier does not seem to be the full answer, since it still only allows me to select the grid-of-objects as a whole in object mode. Is there any way to separate them so I work with them each individually? Change Legend Right to Left Reading in QGIS I am a new QGIS user and i have a challenge to convert legend from right to left reading in QGIS like ArcGIS. In what order does WordPress load plugin files? In what order are plugins loaded in WordPress?   And within a particular plugin's folder, what order is followed for loading? download.01.org certificate verification failed - CRLfile missing? So I had intel-Linux-graphics-installer on my computer  but lately when I   sudo apt-get update   I get the following error  Err https://download.01.org trusty/main amd64 Packages                          server certificate verification failed.  CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none   Tried reinstalling intel-linux-graphics-installer but nothing happend. And various solutions found here on askubuntu.com on certificates problems but didnt end up anywhere.  Any ideas on how to get that CRLfile? Also is this problem on my side or on the servers side? Can we have discussions? Guys, I just wonder if people are allowed to have civilized discussion (on any IT topic) on this forum without actually being accused of starting a row. I'm asking this question for a reason that few days I've asked few questions referring to VM, JIT etc. and compared them to C++ way and despite the fact that I've explained myself that I'm not starting any agro with anyone, that I'm really just genuinely curious, my post was first closed and then removed. I'm asking: What's wrong with asking nonstandard questions which sometimes my be quite difficult to answer? Thanks I get the following error when I try to typeset a beamer document.  kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 0+525/600 --dpi 525 mathkerncmssi8 gsftopk: fatal: map file `cid-base.map' not found. mktexpk: don't know how to create bitmap font for mathkerncmssi8. mktexpk: perhaps mathkerncmssi8 is missing from the map file. kpathsea: Appending font creation commands to missfont.log.  ) !pdfTeX error: pdflatex (file mathkerncmssi8): Font mathkerncmssi8 at 525 not found  ==&gt; Fatal error occurred, no output PDF file produced!   But if I remove sansmathaccent.sty from the TeX Live tree, the document typesets fine. Here is a minimal working example.  \documentclass[10pt]{beamer}  \begin{document}  \begin{frame}{A very short beamer document}  $e^{i\pi}+1=0$  \end{frame}  \end{document} Potentiometer for two 12V/1.1A fans in parallel Show that if $g \circ f$ is injective, then so is $f$. The Problem:  Let $X, Y, Z$ be sets and $f: X \to Y, g:Y \to Z$ be functions.  (a) Show that if $g \circ f$ is injective, then so is $f$.  (b) If $g \circ f$ is surjective, must $g$ be surjective?  Where I Am:  So, I really have trouble with these, for some reason. I can draw pictures and make sense of the problems, but writing down proofs is very difficult for me.   Basically, for (a), I ended up with some complicated statement involving an implication implying another implication and then tried to derive a contradiction. It just got so convoluted that I couldn't make sense of it anymore, and I know there's a quick, elegant way to show it.  For (b), I know that $g$ need not be surjective. Once again, though, proving it directly from definitions has given me a bit of a headache.  Any help here would be appreciated. Thanks in advance.  The Proofs!  Ok, I did it. Thanks for the help, everyone! Let me know if there's anything wrong with these proofs, or if they could bet any better.  (a) Suppose $f$ is not injective. Then $$ f(x_1)=f(x_2) \implies x_1 \ne x_2 \text{        }(*).$$ Let $f(x_1)=y_0=f(x_2)$ and let $g(y_0)=z_0$. Then $$ (g \circ f)(x_1) = (g \circ f)(x_2) = g(y_0) = z_0. $$ Since $g \circ f$ is injective, $$ (g \circ f)(x_1) = (g \circ f_2) \implies x_1 = x_2. $$ However, this contradicts $(*)$. Therefore, $f$ must be injective.  (b) Suppose $g$ is not surjective. Then  $$ \forall y \in Y, \exists z \in Z \text{ such that } g(y) \ne z \text{         }(**).$$  Since, $g \circ f$ is surjective,  $$ \forall z \in Z, \exists x \in X \text{ such that } g(f(x)) = z \text{       } (***). $$  Let $f(x) = y$. Then,  $$ g(f(x)) = g(y) = z. $$  Because of $(***)$, this is true for all $z \in Z$, which contradicts $(**)$. Therefore, $g$ must be surjective.