Most effective and elegant way to find matching Strings in two arrays in Node.js
Simplest code for array intersection in javascript
I simply can't figure out what the capacity of this circuit is.  I can do the math myself, I just need a hint how to create an equivalent circuit where it is obvious what is parallel and what is in series... Creating point to center of polyline? I'm trying to create a points in the middle of polylines. The data is now in the form of shapefile. Is there an easy way to do this? Or operand with int in if statement Difference of $R^2$ between OLS with individual dummies to panel fixed effect model? Based on my understanding, panel fixed effect model is equivalent to OLS with individual dummies. However, when I ran the two models in R, the $R^2$ from the two models were quite different: 0.8 for OLS with individual dummies and 0.06 for fixed effect model.  Is it the case that in fixed effect model, the fixed effects (individual dummies) are excluded from the calculation of $R^2$? We're working on a Log Viewer. The use will have the option to filter by user, severity, etc. In the Sql days I'd add to the query string, but I want to do it with Linq. How can I conditionally add where-clauses? EDIT:  It seems that I've also had edits that stacked well, so I'm not sure if I had a timing problem, or was just delusional.  The one thing that can be fixed, that I'll turn this question into, is a feature request so that when I go to re-edit (either within the 5-minute grace period, or before a suggested edit is approved), it brings up the old edit summary text.  Right now, it brings up a blank edit summary, and this replaced the first one I did.  This isn't really intuitive, and even knowing that's what it's doing, I still forget to put everything in.  Original Question:  It has happened a few times now, when on a site where I don't have edit privileges, that I make an edit.  I then see that the edit didn't work quite right, so I go back in to re-edit it.  This creates a brand new edit review, with an additional useless summary. How about we have the same grace period to re-edit your up-for-review edit, as there is for a normal edit? Of course, it wouldn't be possible once it's been approved. How to typeset a primed vector I write a vector with an arrow above the letter using \vec{p} and sometimes the vector needs to be primed using ' (or ^{\prime}, equivalently).  However, neither  \vec{p}'     nor  \vec{p'}     looks satisfactory (first option: prime dash overlaps with vector arrow, second option: arrow looks misplaced).  How would one write a primed vector? How can I completely remove NetworkManager? The locus of the intersection point of two perpendicular tangents to a given ellipse If I took a picture of a windmill on the horizon — given that I know the sensor size and the focal length of the lens and other factors to do with the shot — could I calculate how far away an object is from the photographer? Solve the integeral equation (C.S.I.R) Let $\lambda_1, \lambda_2$ be the eigen value and $f_1 , f_2$ be the coressponding eigen  functions for the homogeneous integeral equation  $$ \phi(x) - \lambda \int_0^1 (xt +2x^2) \phi(t) dt = 0 $$  Then   $\lambda_1 = -18 - 6 \sqrt{10} , \lambda_2 = -18 + 6 \sqrt{10}$ $\lambda_1 = -36 - 12 \sqrt{10} , \lambda_2 = -36 + 12 \sqrt{10}$ $\int_0^1f_1(x)f_2(x) dx = 1$ $\int_0^1f_1(x)f_2(x) dx = 0$   I have solved simply and get the values of $\lambda_1 \ \ and \ \ \lambda_2$ belong to (1).  Please tell me about (3) and (4) option.  Thank you. How does deleting work? What can cause a post to be deleted, and what does that actually mean? What are the criteria for deletion? Pointwise limit of continuous functions not Riemann integrable sliding a tangent line along a curve What sources of randomness can be made with commands in Minecraft? I want to make a mini game in Minecraft were I need a random command generator for 9 commands. I need a random command to give the player a random item. I can't do the command block in the dispenser any more because it will just drop out instead of being placed. What different ways are there for generating randomness in commands, and which one would be best for my use? This question is similar to the one about , but I am specifically attempting to get randomness when using commands - the redstone solutions do not apply here. single query to print all the rows whose count is greater than 10 How to echo a bang! How to run an encrypted virtual machine? Matrix given by $a_{ij} = 1/(i+j)$ is non-singular. CakePHP View including other views I have a CakePHP application that in some moment will show a view with product media (pictures or videos) I want to know if, there is someway to include another view that threats the video or threats the pictures, depending on a flag. I want to use those "small views" to several other purposes, so It should be "like" a cake component, for reutilization.  What you guys suggest to use to be in Cake conventions (and not using a raw include('') command)