How does this function() in addEventListener work, with regards to the arguments I can pass in? someObj.addEventListener(&quot;click&quot;, function(someVar) { });  What is someVar, and is there a way for me to pass in a variable I want? I can't just define it above because I am calling addEventListener inside of a forEach function..
The situation is somewhat like-  var someVar = some_other_function(); someObj.addEventListener("click", function(){     some_function(someVar); }, false);   The problem is that the value of someVar is not visible inside the listener function of the addEventListener, where it is probably being treated as a new variable.
I've been wondering, what is the general form for the integral of $\sin(\cos x)$? I tried integrating it myself and couldn't, tried with Wolfram Alpha and it couldn't either. If you think about it conceptually, it should have a general form as it's graph if just like sin and cos, which both have general forms. If it doesn't have a general form, I'd like to know why. Thanks! How can I forward delete on iOS? Is there a way to delete text in front of the caret using the iOS software keyboard? The small wireless hardware keyboard accomplishes this with a fn+delete, so there might be a way to use multiple keys to accomplish the same task in iOS? Is it possible to switch a certain Stack Exchange site's interface (as a personal preference) to the theme used by beta sites?  Some sites have flashy decorations or unreadable fonts (I prefer to disable antialiasing on fonts). It would be nice to have an option to see a site with the "beta" theme.  If there's a solution using custom styles, I would accept that as an answer. On the usage of "the" article with acronyms and initialisms I've read  and  I know that  1. The article is often used with initials that are pronounced letter by letter (initialisms).  2. The article is often NOT used with initials that are pronounced as a word (acronyms).  I used 'often' because I'm not sure about possible exceptions.  In my field of study (Operations Research), initials are frequently used to represent optimization problems (e.g., the TSP). I discussed this point with my university supervisor who makes comments on my reports (English is not his native language). He responded that:  "What I learned from [...] was that whenever we use (specific) acronyms, we don't use 'the' when they are within a sentence, and we use 'the' when a sentence starts with them. For instance,  (i) The HCP is an NP-Complete problem.  (ii) We developed a new algorithm to solve HCP."  HCP stands for the Hamiltonian Cycle Problem. It is really confusing me because I do not know when to use and when not to use the article. For example, on , the author Jane Watson writes:     Use a definite article with an initialism if the spelled out term begins with “the” but is not covered in the initialism.   which implies that I should use the article with "HCP". What do you think? Prove that if $n \in \mathbb{N}$, then $$\sum_{d|n}{(d(n))^3}=(\sum_{d|n}{d(n)})^2$$ where $d(n)$ is the divisor function. I have know only information is $d(n)=\sum_{d|n}{1}$. Counterexample to Leibniz criterion for alternating series I have this statement and I need to say if it is true or false:  Let $\{a_n\}$ be a real sequence.  $$\lim_{n\to +\infty} a_n = 0 \quad \implies \quad \sum_{n=1}^{\infty}(-1)^na_n \quad \text{converges}$$  I know, from the Leibniz criterion that:     If $a_n \to 0$, $a_n$ is decreasing and positive then $\sum_{n=1}^{\infty}(-1)^na_n$ converges   From this fact I believe that the statement is false but I couldn't come up with an infinitesimal sequence that isn't decreasing and for that reason is divergent. I tried some function with $sin(\frac{1}{n})$ without any luck. Any help would be very appreciated, thank you! Best way to implement keyboard shortcuts in a Windows Forms application? How force Chrome to use google.com search engine without https Chrome's default search engine is .  How we can force chrome to use  without https?  I need a solution that allows proxies to rewrite my URLs, but https currently makes this impossible... I have a speed-reading program I purchased with uses dotnet2. However, dotnet2 doesn't run on 64 bit wine. How would I install dotnet2? Python string.join(list) on object array rather than string array In Python, I can do:  &gt;&gt;&gt; list = ['a', 'b', 'c'] &gt;&gt;&gt; ', '.join(list) 'a, b, c'   Is there any easy way to do the same when I have a list of objects?  &gt;&gt;&gt; class Obj: ...     def __str__(self): ...         return 'name' ... &gt;&gt;&gt; list = [Obj(), Obj(), Obj()] &gt;&gt;&gt; ', '.join(list) Traceback (most recent call last):   File "&lt;stdin&gt;", line 1, in &lt;module&gt; TypeError: sequence item 0: expected string, instance found   Or do I have to resort to a for loop? This question dovetails with this post on .  I am familiar with some of larger, paid-for business registry's like  and .  While the detailed information their business listings database include (like # of employees, annual sales, industry code, etc) is fantastic, if you are on a limited budget, sometimes the cost of purchasing the data outweighs the value you can get from it.  If you have geocoding capabilities in house, one could potentially create a reasonable surrogate by spatially-enabling (geocoding) a publicly available business listing on your own.    If you were looking to take on this type of project, where would you start your research? Do you know of US agencies at a State or National level that maintain this type of information, AND are publicly available for download or minimal purchase? Why is the light in an airplane turned off during take off and landing? Why are there holes in the icing? I tried to follow the new Blender 2.8 tutorial from Blender Guru.   When entering "Sculpting" with the icing there were suddenly alot of holes in it. Why is this? $F$ is a finite field of order $q$. What is the size of $\operatorname{GL}_n(F)$ ?  I am reading Dummit and Foote "Abstract Algebra".  The following formula is given:  $(q^n - 1)(q^n - q)\cdots(q^n - q^{n-1})$.  The case for $n = 1$ is trivial.  I understand that for $n = 2$  the first row of the matrix can be any ordered pair of field elements except for $0,0$. and the second row can be any ordered pair of field elements that is not a multiple of the first row.  So for $n = 2$  there are $(q^n - 1)(q^n - q)$ invertible matrices.  For $n\geq 3$, I cannot seem to understand why  the formula works.  I have looked at Sloane's OEIS A002884.  I have also constructed and stared at a list of all $168$ $3\times 3$ invertible matrices over $GF(2)$.  I would most appreciate a concrete and detailed explanation of how say $(2^3 - 1)(2^3 - 2)(2^3 - 2^2)$ counts these $168$ matrices. I have an issue which I could not solve, although I tried and I got some help on R forum.  I am trying to calculate Mahalanobis distances on a data.frame, where I have several hundreds of groups and several hundreds of variables. Whatever I do, I get the system is computationally singular: reciprocal condition number error.   It is clear that it is singular, but is there any way to get rid of it and run Mahalanobis? Should I forget solve this using another approach? If yes, then what else to use?  I have uploaded the data file to my :  It is a tab delimited txt file with no headers.  I was working with the R StatMatch Mahalanobis (also tried stats Mahalanobis) function. I have a deadline for this project (not a homework!), and I could always use this function, so I thought I will be able to keep the calculations short, but now I am lost.  Migrated . Is there a word that contains all the vowels? "Jealousy" contains most of the vowels but lacks 'i'. Is there a word in the English language that contains every vowel (and preferably 'y')? Is there an equivalent of computation of physical processes in nature? I was watching a waterfall in the Austrian Alps. There were thousands of water droplets falling down, splattering on the stones below. I thought - how does nature find out so quickly where each droplet of water should go? To find out what happens to a falling droplet of water, one can use the laws of motion and calculate the trajectory. To calculate, one needs some amount of time, some machine (the brain, computer) and some energy to feed the machine. Does it make sense to ask what is the equivalent of this computation in nature? How does nature find out so quickly how things should move? More generally, to find out how anything should happen? Where is the &quot;calculation&quot; in nature? There's no room or energy for a machine in the particles that make up things. Is there any way to distribute spacing equally in every object?    Is there any option to do? I want 2MM spacing in every geometrical shape.  Thanks in advance. I had booked a ticket for travel through Indian Railways using IRCTC and got a confirmed ticket. While booking, I forgot to mention the details of a one year old child who will also be traveling.     Will it create any problem while boarding the train? How to find which RAM to get for my computer? I don't have any knowledge in hardware and would like to know which RAM should I buy for my laptop.  How do I discover what RAM I need &amp; how much my machine can take?  I have a Razer Blade 15 (RZ09-02705F76) 2018 but don't know if there is a specific type or format of RAM that suits it and don't know where to find this information.