I have already looked at , but I'm not looking for references. I'd like to know how to check if two objects, or two arrays, two maps, two sets, etc, have the same values as another. Edit Not only the same values, but also keys! For example; var a = {foo: &quot;bar&quot;}; var b = {foo: &quot;bar&quot;}; a == b // I'd like true, but this returns false  Above code will return false, because of object reference. I do know that &quot;foo&quot; == &quot;foo&quot; will return true, because that's how strings work, but how's that for objects, arrays, maps, etc?
A strict equality operator will tell you if two object types are equal. However, is there a way to tell if two objects are equal, much like the hash code value in Java?  Stack Overflow question  is similar to this question, but requires a more academic answer. The scenario above demonstrates why it would be necessary to have one, and I'm wondering if there is any equivalent solution.
Suppose $\int_{[a,b]}f=0,\text{ then }f(x)=0 \forall x\in[a,b]$ Let $a&lt;b$ be real numbers. Let $f:[a,b]\to\mathbb{R}$ be a continuous non-negative function. Suppose $\int_{[a,b]}f=0,\text{ then }f(x)=0 \forall x\in[a,b]$    Proof: Suppose for the sake of contradiction $\exists x_0\in[a,b] \text{ such that } f(x_0)= D&gt; 0$  Since the function is continuous at $x_0$, we have $$\forall \epsilon&gt;0, \exists \delta&gt;0 \text{ such that } |f(x)-f(x_0)|\leq\epsilon\text{ whenever } x\in[a,b]\cap(x_0-\delta,x_0+\delta)$$ choose $\delta=\delta_1$ such that $\epsilon=D/2$, then we can say: $$-D/2 \leq f(x)-f(x_0)\leq D/2$$ $$-D/2 \leq f(x) - D$$ $$f(x)\geq D/2&gt;0$$ This implies that $\int_{[a,b]\cap(x_0-\delta_1,x_0+\delta_1)}f &gt;0$  Now since $\int_{[a,b]} f = 0$. we have  $$\int_{[a,b]}f=\int_{[a,x_0-\delta_1]}f+ \int_{(x_0-\delta_1, x_0+\delta_1)} f + \int_{[x_0+\delta_1,b]}f=0$$ $$\int_{[a,x_0-\delta_1]}f+\int_{[x_0+\delta_1,b]}f&lt;-D/2,$$ but this is a contradiction since $f(x)\geq 0$ and hence $\int_{[a,x_0-\delta_1]}f+\int_{[x_0+\delta_1,b]}f\geq 0$  Is my proof correct? Are there any areas that should be avoided and are there any steps I should take to protect myself from radiation? Make a table span multiple pages I have a table that takes up a full page, but I want it to start on a page that already has some text and then continue onto the next page (i.e. it's ok if the table gets broken up and spans two pages). It is a simple two column table:  \begin{table}[h] \centering \begin{tabular}{| p{.20\textwidth} | p{.80\textwidth} |}  \hline foo &amp; bar \\ \hline  foo &amp; bar \\ \hline  ... \end{tabular} \end{table}   I guess I need longtable? How do I use it? Even my main monitor is shown as unknown. I have tried setting up dual monitors using Nvidia settings with no joy however it does recognize that I have 2 monitors.  This was not an issue in 11.04. My problem with the Nvidia settings appears to be that my 2 monitors require different resolutions but even when I set them to a resolution that they both can handle, it is then only appearing in cloned mode. I really hope someone can help or I will have to roll back to 11.04.  Why won't Ubuntu 11.10 recognize that I have 2 Monitors?   Here is the contents of my xorg.conf:  # nvidia-settings: X configuration file generated by nvidia-settings # nvidia-settings:  version 280.13  (buildd@rothera)  Thu Aug 11 17:28:49 UTC 2011  Section "ServerLayout"     Identifier     "Layout0"     Screen      0  "Screen0" 0 0     InputDevice    "Keyboard0" "CoreKeyboard"     InputDevice    "Mouse0" "CorePointer"     Option         "Xinerama" "0" EndSection  Section "Files" EndSection  Section "InputDevice"     # generated from default     Identifier     "Mouse0"     Driver         "mouse"     Option         "Protocol" "auto"     Option         "Device" "/dev/psaux"     Option         "Emulate3Buttons" "no"     Option         "ZAxisMapping" "4 5" EndSection  Section "InputDevice"     # generated from default     Identifier     "Keyboard0"     Driver         "kbd" EndSection  Section "Monitor"     # HorizSync source: xconfig, VertRefresh source: xconfig     Identifier     "Monitor0"     VendorName     "Unknown"     ModelName      "CRT-0"     HorizSync       30.0 - 83.0     VertRefresh     50.0 - 76.0     Option         "DPMS" EndSection  Section "Device"     Identifier     "Device0"     Driver         "nvidia"     VendorName     "NVIDIA Corporation"     BoardName      "GeForce 7025 / nForce 630a" EndSection  Section "Screen"     Identifier     "Screen0"     Device         "Device0"     Monitor        "Monitor0"     DefaultDepth    24     Option         "TwinView" "1"     Option         "TwinViewXineramaInfoOrder" "CRT-0"     Option         "metamodes" "CRT: 1280x1024 +1024+0, DFP: 1024x768 +0+0"     SubSection     "Display"         Depth       24     EndSubSection EndSection"   ok I have tried disper -e. Problem is that Nvidia settings appear to be treating both monitors as the same one. so changing the settings to one has no effect, but change the other and it affects both screens identically.  Results of disper -l as follows:      carter@carter-desktop:~$ disper -l display DFP-0: HP vs17  resolutions: 320x240, 400x300, 416x312, 512x384, 576x432, 680x384, 640x480, 720x450, 640x512, 800x512, 840x525, 800x600, 960x540, 832x624, 960x600, 896x672, 1024x768, 1152x864, 1280x960, 1280x1024 display CRT-0: CRT-0  resolutions: 320x240, 400x300, 416x312, 512x384, 576x432, 680x384, 640x480, 720x450, 640x512, 800x512, 840x525, 800x600, 960x540, 832x624, 960x600, 896x672, 1024x768, 1152x864, 1360x768, 1280x960, 1440x900, 1280x1024, 1400x1050, 1600x1024, 1680x1050, 1600x1200, 1920x1080, 1920x1200, 1792x1344 carter@carter-desktop:~$ What does the Canonical Commutation Relation (CCR) tell me about the overlap between Position and Momentum bases? Show current ping to website on Taksbar I'm looking for a way to monitor my current internet connection quality by showing the ping-response to a website like google in the taskbar on the right side. I'm using Windows 8.1. Kind of like , but for the ping. Any suggestions?  I want to stop using the command line to ping Google. Maybe I'm searching for the wrong thing, but I can't see how I can do this.  I have two servers:   Server A (has SQL Server 2012 installed) Server B (has SQL Server 2014 installed)   Server A provides an API via IIS. The code both inserts and gets data from the database depending on the API call.  Server B does exactly the same for its local database.  I would like to have it so that the two databases are consistent copies of each other. I do believe this is what HA accomplishes.   So a load balancer, for example, might direct API calls to A sometimes, and B sometimes, but the data needs to be consistent either way.  I found some documentation on HA for SQL Server 2012, but not on how to do this for a mixed environment of 2012 and 2014.  Any help or pointers to documentation would be great! Thanks. I occasionally update my kernel from this web site    I have been always downloading 3 deb files for installing  linux header all, linux image and linux headers. I noticed one more deb file recently for 64 bit kernel called Linux-image-extra.  I would like to know what does kernel file Linux-image-extra do and should I also install it? Assume that the matrices $A,\: B\in \mathbb{R}^{n\times n}$ satisfy  $$ A^k=0,\,\, \text{for some $\,k\in \mathbb{Z^+}$}\quad\text{and}\quad AB=BA. $$  Prove that $$\det(A+B)=\det B.$$ Mathematics Ph.D program foreign language requirement I will soon be attending a Ph.D program in mathematics. I do not know how common this practice is, but the department has a requirement that graduate students must learn a foreign language and be able to read and write mathematics in that language. The three choices are French, German, or Russian. I personally have no preference on which to learn, but I was wondering if there were other reasons that would make one language more advantageous over the others in terms of a general mathematical career. Thanks in advance in any response. What year is the series "Chilling Adventures of Sabrina" supposedly set in? Almost everything in Greendale seems to be vintage 1960's (cars, movies, dress). I assume it is to reflect the original comic book, but I swear I saw Ambrose using a laptop computer in the first episode. Was this just to make it more topical? Or is it some kind of alternate reality? Interpreting exp(B) in multinomial logistic regression This is somewhat of a beginner's question, but how does one interpret an exp(B) result of 6.012 in a multinomial logistic regression model?  1) is it 6.012-1.0 = 5.012 = 5012% increase in risk?  or  2) 6.012/(1+6.012) = 0.857 = 85.7% increase in risk?  In case both alternatives are incorrect, can someone please mention the correct way?  Ive searched many resources on the internet and I get to these two alternatives, and I am not entirely sure which one is correct. SGS2 screen gets more and more dark blue, possibly after overheated charging How can I access the apache basic-auth username in a PHP script? Spaces in variable assignments in shell scripts On average, how many times must I roll a dice until I get a $6$?  I got this question from a book called Fifty Challenging Problems in Probability.   The answer is $6$, and I understand the solution the book has given me. However, I want to know why the following logic does not work: The chance that we do not get a $6$ is $5/6$. In order to find the number of dice rolls needed, I want the probability of there being a $6$ in $n$ rolls being $1/2$ in order to find the average. So I solve the equation $(5/6)^n=1/2$, which gives me $n=3.8$-ish. That number makes sense to me intuitively, where the number $6$ does not make sense intuitively. I feel like on average, I would need to roll about $3$-$4$ times to get a $6$. Sometimes, I will have to roll less than $3$-$4$ times, and sometimes I will have to roll more than $3$-$4$ times.  Please note that I am not asking how to solve this question, but what is wrong with my logic above.  Thank you! How do Stack Overflow questions appear in Google search results in seconds? Finding determinant for a matrix with one value on the diagonal and another everywhere else Let us look the the matrix  $\left(\begin{array}{ccccc} a &amp; b &amp; b &amp; b &amp; b\\ b &amp; a &amp; b &amp; b &amp; b\\ b &amp; b &amp; a &amp; b &amp; b\\ b &amp; b &amp; b &amp; a &amp; b\\ b &amp; b &amp; b &amp; b &amp; a \end{array}\right)$  It has one value, $a$, on the main diagonal, and another value, $b$ everywhere else. Let us assume that we are over a ring and that $a$ is invertible.  I wish to find the determinant of every $n\times n$ matrix of this form ($a$ on the diagonal, $b$ everywhere else). Using row and column operations I have managed to transform the matrix to upper-triangular form and found formula for specific cases. Generalizing it I got to the following formula:  $\det(A) = a\left(a-b\right)^{n-2}\left(a+\left(n-2\right)b-\frac{\left(n-1\right)b^{2}}{a}\right)$  I think I can prove it with row-operations in the general case with a little patience.  However, I'm wondering if there is a "smart" way of getting to this formula that I'm missing and if there is a nicer representation of it. Also, what can be said when $a$ is not invertible? (esp. the case where we are over a field and $a=0$). How to manipulate a CSV file with sed or awk? How can I do the following to a CSV file using sed or awk?   Delete a column Duplicate a column Move a column   I have a big table with over 200 rows, and I'm not that familiar with sed. Product of manifolds & orientability