How to debug javascript program
How can I debug my JavaScript code?
Problem :   Solve in $\mathbb N$ :   $8n+9\equiv 0\pmod{1163}$  The mathematics give me : $n=435+1163k$ , $k\in\mathbb N$   $1163$ is a prime number   $8n\equiv -9\pmod{1163}$   $8n\equiv 1154\pmod{1163}$   I don't know any ideas to complete my work ?   I have to see your hints Looking at the questions and answer to these two questions.  &amp;  and neither mentions the longevity of magic. I recall several instances of magic failing to last; the money that was spread at the  and the broken  on.  If I recall correctly when Voldemort died, the curses on several people were lifted.  I don't recall if any other spells fell apart with his death.  Is there any canon evidence on the the length of time a spell will live? I have a directory where daily subdirectories are created, literally named according to $date. How can I delete folders and their contents that are older than 7 days according to the YYYYMMDD in the file name and not the metadata date? Say I have (skipped some for brevity):  20170817 20170823 20170828 20170901   I would end up with the following folders (which those should keep):  20170828 20170901   I created a variable that holds the date 7 days ago: dt_prev=$(date -d "`date`-7days" +%Y%m%d)  My thought was to ls -l a list of these folder names and compare row by row, but this involves cleaning that list, etc., and I figure there has to be an easier way. Bohr's model of an atom doesn't seem to have overcome the drawback of Rutherford's model Error when using TikZ-Feynman package Today I downloaded and installed the new  package to draw Feynman diagrams. I included the packages   \usepackage{tikz}  \usepackage{tikz-feynman} \tikzfeynmanset{compat=1.0.0} \usetikzlibrary{shapes,arrows,positioning,automata,backgrounds,calc,er,patterns}   into my preamble (changed them already many times).  However, already a simple sample code like  \begin{tikzpicture} \begin{feynman} \vertex (a) {\(\mu^{-}\)}; \vertex [right=of a] (b); \vertex [above right=of b] (f1) {\(\nu_{\mu}\)}; \vertex [below right=of b] (c); \vertex [above right=of c] (f2) {\(\overline \nu_{e}\)}; \vertex [below right=of c] (f3) {\(e^{-}\)}; \diagram* { (a) -- [fermion] (b) -- [fermion] (f1), (b) -- [boson, edge label'=\(W^{-}\)] (c), (c) -- [anti fermion] (f2), (c) -- [fermion] (f3), }; \end{feynman} \end{tikzpicture}   directly gives the error:     Package pgfkeys Error: I do not know the key '/graph drawing/node distance'.   Can you please help me? Thanks in advance! I tried to use sudo cd name_of_dir but am getting the error message:   sudo: cd: command not found   Is there any other way to enter a directory owned by another user which has 700 permission? Date api for managing off days in an year? I have installed VirtualBox OSE on Ubuntu 11.04 and Windows XP pro as the virtual machine. Now I want to have a shared folder which can be accessed on both, my host Ubuntu machine, and my WinXP guest virtual machine.  How can I do that? In classical logic, why is $(p\Rightarrow q)$ True if both $p$ and $q$ are False? I am studying entailment in classical first-order logic.  The Truth Table we have been presented with for the statement $(p \Rightarrow q)\;$ (a.k.a. '$p$ implies $q$') is: $$\begin{array}{|c|c|c|} \hline p&amp;q&amp;p\Rightarrow q\\ \hline T&amp;T&amp;T\\ T&amp;F&amp;F\\ F&amp;T&amp;T\\ F&amp;F&amp;T\\\hline \end{array}$$  I 'get' lines 1, 2, and 3, but I do not understand line 4.      Why is the statement $(p \Rightarrow q)$ True if both p and q are False?  We have also been told that $(p \Rightarrow q)$ is logically equivalent to $(~p || q)$ (that is $\lnot p \lor q$).  Stemming from my lack of understanding of line 4 of the Truth Table, I do not understand why this equivalence is accurate.       Administrative note. You may experience being directed here even though your question was actually about line 3 of the truth table instead. In that case, see the companion question  And even if your original worry was about line 4, it might be useful to skim the other question anyway; many of the answers to either question attempt to explain both lines. Why do shields in Star Trek "wear out"? There are many collectable flags throughout the game of Assassin's Creed and every time one is collected, you get a progress indicator (e.g., 33 of 100).  Is there any reason to collect these, other than bragging rights?  I recall getting all available flags in one particular town and never saw any special reward or secret revealed. How to evaluate this trigonometric limit? I have been struggling to solve this limit.  What is the limit as $x$ approaches $45^0$ of $$\frac{\sqrt{2}\cos x-1}{\cot x-1}?$$   I know how to use L'Hospital's rule to calculate this limit and got the answer as $0.5$. But, how do I calculate the limit by manipulating the function? Please provide only some hints to proceed. butt, bottom, buttock and ass? A woman's butt was allegedly touched by a man several times during a commute on the MRT.   How to use butt, bottom, buttock and ass? I am confusing with these words. What is $\int_{-\pi}^\pi \cos(nx)\cos(mx)\,dx$? I'm pretty sure that there's a theorem that says that the Fourier coefficients of a sum of $\cos(nx)$ and $\sin(nx)$ 's are the coefficients of the sum itself.   I tried to prove that in the specific case of $f(x) = \sum_{n=1}^{\infty}\frac{\cos(nx)}{n^2}$. In calculating the Fourier coefficients I got to calculating  $\cos(nx)\cdot\cos(mx)$, but I'm now stuck. Any tips would be appreciated! I have a PC who wants to jump onto an enemy in a combat situation. The player wants him to land on the (humanoid) enemy, sword drawn, and use the enemy to break his fall while plunging shortswords into it. I thought of using a straight attack roll, because it was only a 12 foot drop from the ledge to the top of the enemy. But I would imagine a lot would depend on the distance, and also whether the enemy might suspect such an attack. Also, I would expect the PC would take damage on a miss, but how about on success? Does the verb &quot;provide&quot; always have to be used with &quot;with&quot;? For example,  Can you provide me with some good examples? Can you provide me some good examples? Can you provide some good examples?  I suppose it's a transitive verb, isn't it? Moreover, is the following type of usage correct?  You should provide food for your dog before you go on vacation.  If you could give me some good examples regarding &quot;provide&quot; with different types of usage, I'd appreciate that. I'm trying to solve an exercise about first order stochastic dominance, and there is this one question that I'm not able to answer.  Here are the hypothesis of the exercise:  Let Y ∼ F and Y' ∼ G, that means Y (resp. Y') has a probability law given by the distribution function F (resp. G).  Assume that Y ≥ 0 and Y' ≥ 0 and E(Y) + E(Y')&lt; ∞.  Here comes the question:  -Show that if the survival function of Y first order dominates over the survival function of Y', then if Y and Y' are independent, we have P(Y ≥ Y') ≥ 1/2.  I don't see how to use that Y and Y' are in this case independant.  Maybe I should set X=Y-Y' and then use the convolution?  Any help, would be appreciated, thanks !  Alex Does OpenSSH support multihop login? Ansible uses OpenSSH as the bottomed network communicative implementation, but does it support multi-hop login?   I mean, if Ansible can login a server directly, but can it log in server_a then from server_a login server_b for config the server_b? Related to Meta Super User efforts:  and Meta Server Fault efforts:  We already auto-remove negatively voted unanswered old questions automatically after 30 days, network wide, with no human intervention required. I was thinking we might extend that to remove old, unanswered zero score questions... based on the following criteria:  fewer than (question age in days * 1.5) views 0 score or lower, or 1 score or lower if the original author is deleted no answers 1 comment or fewer asked more than 1 year ago (thus based on creation date, not last activity date, so , or a user editing it, does not give a doomed question 365 more days of zombie &quot;life&quot;)  See the results of this query on:  (10509) |  (787) |  (650) This query has been refined based on the comments, and this is the final version that will roll out tonight. Every site in the network (except metas) will automatically delete old questions that meet this criteria from this point forward. Defer Parsing of Scripts this is my first time to try this "Defer Parsing" thing, and I don't really have an idea how to do it.    Using PageSpeed tool, I found out that one of the reason why my page is loading too slow (currently 92/100) are the scripts. And the PageSpeed suggested that I need to Defer Parsing all those scripts.  Is there anyone that can help me with this. Thanks.