I am trying to access the array value of a certain person property, but  instead it is giving me the index of the string person. How do I fix this  to get the desired output?  var Stats = {     person1: [17, 0],      person2: [15, 0],     person3: [10, 2],     person4: [7, 5],     person5: [5, 7]   };    for (var key in Stats) {   if(key === person4){     console.log(key); //Output "Person4" as expected     console.log(key[0]); //Output "P" when I expect/want 7   } }
How do I enumerate the properties of a JavaScript object?  I actually want to list all the defined variables and their values, but I've learned that defining a variable actually creates a property of the window object.
How can we find premade adventures for a virtual tabletop? Me and a couple of friends are just getting into P&amp;P rpgs and are really excited to try something new. However, we have a problem that we live quite far apart from each other. Therefore we'd like to use one of excellent virtual tabletops that are available. But none of us have any real experience with creating an adventure and would thus like to use a premade and beginner friendly adventure. But we're having a hard time finding one with premade story, maps etc in an online format. Most seem to be printed books and the Roll20 marketplace hasn't really gotten started yet. So what we're looking for a is online way to play a premade adventure to get us started in the RPG world.  How can we find these adventures for a VTT? $x^y = y^x$ for integers $x$ and $y$ We know that $2^4 = 4^2$ and $(-2)^{-4} = (-4)^{-2}$. Is there another pair of integers $x, y$ ($x\neq y$) which satisfies the equality $x^y = y^x$? I'tm trying to show in SQLcmd window the results of these queries:  SELECT SYSDATETIME() AS "date";  PRINT 'EXTRAÍDO POR:' SELECT SUSER_NAME() AS "Owner"  PRINT 'PASSWORD SETTINGS'; exec xp_loginconfig;  PRINT 'PASSWORD SETTINGS'; select * from sys.sql_logins;   And using this command in SQLcmd:  sqlcmd -S myServer -i inputpath -s, -o outputPath(like C:\log.xls) -e   So the sqlcmd output the file and does not show nothing in sqlcmd screen. How can i print these "Print" commands in the sqlcmd screen? (command promt).  When I run it on SSMS works well, like:  (1 row affected) OWNER:  (1 row affected) PASSWORD SETTINGS  (8 rows affected) PASSWORD SETTINGS  I would like to show in the prompt command this, like in the SSMS.  Thanks! Resubmitted rejected suggested edits It seems that when a user’s suggested edit gets rejected they can simply re-suggest it, and given the  of affairs of the suggested review queue the suggested edit is quite likely to be approved (or if not this time, then it will almost certainly be approved if they are persistent).    As an example I saw the following  which was rejected, very shortly after I saw almost the  suggested again, this time it got two approvals.  Should there perhaps be some sort of delay until a user can suggest an edit after their suggestion was rejected for the same post? Perhaps a check can be made how large of a difference there is between the two suggestions (though I’m not sure it’s worth doing just for this, and a delay is probably sufficient)?   I do understand that a user should be able to re-suggest an edit after it was rejected, since after all perhaps they made a better suggestion after seeing that it was rejected, however in cases like these I don’t think that is what is happening.  I did see  saying that after some rejected edits a user cannot suggest any further edits until a week has passed, but as this is clearly not happening here I guess that may have changed since that post. Custom 500 Error page: Is there a way to theme a fatal error? In /core/includes/errors.inc, when there is a fatal error it outputs a response with the message "The website encountered an unexpected error. Please try again later." and a back-trace, if error_level is set to verbose, and without the back-trace otherwise.  It seems like at this point, there's no way, with an event subscriber to capture the response and alter it.  Is that correct?  Or is there a way to wrap the output from line 268 of errors.inc in Drupal 8.4 with markup?    Note, there's another , but that doesn't offer a complete solution.  Also, I looked into .htaccess and Apache ErrorDocument directive, but that . Once Apache passes off to PHP, it can no longer use that directive.  That's for real server errors. Can you be refused a visitor visa to US if you have bad Credit there? I did my 3 years of College in the US, 2010-2013 due to finance issues I was unable to pay my credit card bill of a certain bank, which still lie unpaid.  However I plan on visiting the US later this year; could I be denied visa for having an unpaid bill ? Cannot replace a packed image in the uv image editor I was trying to replace an image in my UV image editor, but the image defaults to a different image. how do I fix this? How can energy be useful when it is 'abstract'? The topic which haunted me for two years until I gave up on it. But now I am doing engineering and this topic suddenly popped out of my textbook from nowhere. I seriously need to understand this topic because I wasn't able to do so in the past. I have read many book on 'energy' and it came to nothing. Maybe just because the many books I have read all said 'energy' is something which doesn't 'exist'! It is 'abstract'! It is just a number which represents the state or orientation of a system. But then I see so many examples that 'uses' energy to do 'work'. But the question here is that if anything doesn't exist in this universe, then how can the same thing be used to do something that exist?  My problem is that I didn't understood the topic 'energy' and all the other topics related to it (work, power etc.) Google map signed api key errors in Android How would I identify what's causing my Mac to permanently hang on shutdown? Whenever I try to shutdown or reboot my Mac (Macbook Pro 15" Retina late 2013, OS X 10.11.3) it closes all programs like normal and then it goes into that black screen with the progress bar. When it gets to about halfway it permanently hangs and won't ever finish rebooting. I looked at the log viewer and couldn't find anything in particular. Is there a way to monitor a shutdown more closely and find out what's causing it to get stuck? How to get Intel Dual Band Wireless-AC 3168 work on Ubuntu 16.04? I searched many solutions on this site but most of them were referring to Broadcom Wifi drivers while mine has Intel one.   Output of lspci -knn | grep Net -A2  arijit@HP-AU134TX:~$ lspci -knn | grep Net -A2  05:00.0 Network controller [0280]: Intel Corporation Device [8086:24fb] (rev 10) DeviceName: Intel Dual BandWireless-AC 3168 802.11 ac 1x1 WiFi + BT 4.0 Combo Adapter Subsystem: Intel Corporation Device [8086:2110]   Output of rfkill list  arijit@HP-AU134TX:~$ rfkill list  arijit@HP-AU134TX:~$    i.e No Output  Output of uname -a; dmesg | grep iwl  arijit@HP-AU134TX:~$ uname -a; dmesg | grep iwl  Linux HP-AU134TX 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux I'm curious why PCBs have one square pad in row for 0.1" headers. What is purpose of putting one square pad? What it indicates? Can you push more amps through square pad than round? I used this isomorphism today but now I'm having trouble justifying it. The norm function isn't additive so I can't come up with a ring isomorphism to prove the following:     For any $\,a+bi\in\Bbb Z[i],\,\gcd(a,b)=1$, we have a ring isomorphism   $$\Bbb Z[i]/\langle a+bi\rangle\,\cong\Bbb Z/(a^2+b^2)\Bbb Z=:\Bbb Z_{a^2+b^2}.$$   Could someone show me an isomorphism between these rings to prove this? I am fairly new to the system administration world. I've been working on an application recently and when I check my application server logs, I constantly get various IP addresses trying to ssh into my server by brute force. Here is an example of my server log:   Feb 14 04:07:20 foodwiz3 sshd[1264]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key Feb 14 04:07:21 foodwiz3 sshd[1264]: reverse mapping checking getaddrinfo for coenamor.columbiansabbatical.com [23.249.167.223] failed - POSSIBLE BREAK-IN ATTEMPT! Feb 14 04:07:21 foodwiz3 sshd[1264]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=23.249.167.223  user=root Feb 14 04:07:23 foodwiz3 sshd[1264]: Failed password for root from 23.249.167.223 port 32997 ssh2 Feb 14 04:07:23 foodwiz3 sshd[1264]: Received disconnect from 23.249.167.223: 11: Bye Bye [preauth] Feb 14 04:13:04 foodwiz3 sshd[1289]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key Feb 14 04:13:05 foodwiz3 sshd[1289]: reverse mapping checking getaddrinfo for coenamor.columbiansabbatical.com [23.249.167.223] failed - POSSIBLE BREAK-IN ATTEMPT! Feb 14 04:13:05 foodwiz3 sshd[1289]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=23.249.167.223  user=root Feb 14 04:13:07 foodwiz3 sshd[1289]: Failed password for root from 23.249.167.223 port 41562 ssh2   Is this something that is fairly normal, or should I be worried/doing something about it? LaTeX Editors/IDEs Three-columns text with figures of 2\columnwidth I have to prove by induction that $$\sum_{r=0}^{n}\begin{pmatrix}n \\ r \end{pmatrix}=2^k$$, using the identity $\begin{pmatrix}n \\ r-1 \end{pmatrix}+\begin{pmatrix}n \\ r \end{pmatrix}=\begin{pmatrix}n+1 \\ r \end{pmatrix}$. I'm fine with everything except the inductive step, where I only managed to get as far as $$\sum_{r=0}^{k+1}\begin{pmatrix}n \\ r \end{pmatrix}= \sum_{r=0}^{k}\begin{pmatrix}n \\ r \end{pmatrix}+\begin{pmatrix}n \\ k+1 \end{pmatrix}$$ I tried to then use the identity and substitute $\begin{pmatrix}n \\ r \end{pmatrix}=\begin{pmatrix}n+1 \\ r \end{pmatrix}-\begin{pmatrix}n \\ r-1 \end{pmatrix}$ but all this did was just take me around in a circle. I also couldn't substitute $2^k$ for $\sum_{r=0}^{k}\begin{pmatrix}n \\ r \end{pmatrix}$ since this didn't properly simplify to give $2^{k+1}$. However, I think that I have to obtain the expression $\sum_{r=0}^{k}\begin{pmatrix}n \\ r \end{pmatrix}$ since it simplifies to $2^{k+1}$. But I've not been able to obtain this in anyway so I'm wondering if anyone can guide in what I need to or what direction I need to take to complete the inductive step. Currently I have some code that is being generated dynamically.  In other words, a C# .cs file is created dynamically by the program, and the intention is to include this C# file in another project.  The challenge is that I would like to generate a .DLL file instead of generating a C# .cs file so that it could be referenced by any kind of .NET application (not only C#) and therefore be more useful. Prove that $f'(a)=\lim_{x\rightarrow a}f'(x)$. Let $f$ be a real-valued function continuous on $[a,b]$ and differentiable on $(a,b)$. Suppose that $\lim_{x\rightarrow a}f'(x)$ exists. Then, prove that $f$ is differentiable at $a$ and $f'(a)=\lim_{x\rightarrow a}f'(x)$.    It seems like an easy example, but a little bit tricky. I'm not sure which theorems should be used in here.    ==============================================================  Using @David Mitra's advice and @Pete L. Clark's notes I tried to solve this proof. I want to know my proof is correct or not.  By MVT, for $h&gt;0$ and $c_h \in (a,a+h)$ $$\frac{f(a+h)-f(a)}{h}=f'(c_h)$$ and $\lim_{h \rightarrow 0^+}c_h=a$.    Then $$\lim_{h \rightarrow 0^+}\frac{f(a+h)-f(a)}{h}=\lim_{h \rightarrow 0^+}f'(c_h)=\lim_{h \rightarrow 0^+}f'(a)$$   But that's enough? I think I should show something more, but don't know what it is. Assign the results from a Solve to variable(s)