Suppose I have two timestamp:  var timestamp1=Date.now(); var timestamp2=Date.now();   and we know that timestamp1
How do I get the number of days between two dates in JavaScript? For example, given two dates in input boxes:  &lt;input id="first" value="1/1/2000"/&gt; &lt;input id="second" value="1/1/2001"/&gt;  &lt;script&gt;   alert(datediff("day", first, second)); // what goes here? &lt;/script&gt;
Let $k^p = k$, $K = k(x)$ and $F = k(u)$ for some $u \in K$. Show that $K/F$ is separable $\iff u \not\in K^p$. Let $K$ be the rational function field $k(x)$ over a perfect field $k$ of   characteristic $p &gt; 0$. Let $F = k(u)$ for some $u\in K$, and write   $u = f(x)/g(x)$ with $f$ and $g$ relatively prime. Show that $K/F$ is   a separable extension if and only if $u\notin K^p$.   There is already a post on this but it has not yet been answered :   The truth is that I am very confused with this problem, I would like someone please help me to understand what happens with this exercise and explain to me how it could be done by giving me a help or something. I already have an approach for the left-to-right implication, but I do not know very well how good it is. Could someone help me with the other implication please? Thank you very much. How can I prevent spam on sites which I control? This is a general, community wiki question to address all non-specific spam prevention questions.  If your question was closed as a duplicate of this question and you feel that the information provided here does not provide a sufficient answer, please open a discussion on .    For purposes of this question, spam will include:   Any automated post Manually-posted content which includes links to spammers' sites Manually-posted content which includes instructions to visit a spammer's site Where's the summary of your own suggested edits? Does the universe have a center? What does 'exec {fd}</dev/watchdog' do in Bash That is literal, {fd} isn't a placeholder. I have a script that does this, and does not source in anything, nor does it reference {fd} anywhere else.  Is this valid bash?  exec {fd}&lt;/dev/watchdog What are underfull hboxes and vboxes and how can I get rid of them? "1 out of 100 chickens is" or "1 out of 100 chickens are"? In Fallout 4 the Bobbleheads are back.  Once you pick them up they stay in your inventory with a weight of 0 and a value of 300. Will I need them later ? Do I lose the bonus if I sell them or drop them somewhere ? Same with the magazines.  Is there any disadvantage to selling them ? Does there exist a laser that is tunable over the whole visible spectrum? Does there exist a laser that is tunable over the whole visible spectrum? If so does there exist one that is solid state? This is to settle a score with my dumb workmates. Is there any way to force SQL Server NOT to mark subscriptions as inactive, ever?  It happens sporadically when there are connection issues and I don't want to have to reinitialize the subscription every time.  Note, I'm not talking about the subscriptions being marked as expired...just as inactive.  We have retention set to 0 (infinite). I'd rather have a big distribution database than have to reinitialize a 15GB database to a subscriber over the WAN. Anyway, the real issue here is that they are getting marked as inactive within just a few hours sometimes...or sometimes a few days...it seems sporadic. Is there any way to tell WHY SQL decided in its wisdom to mark them inactive? Why has my Samsung Galaxy S2 become a data hog? Resize multiple layers around their respective anchor points I'm building an application where I should capture several values and build a text with them: Name, Age, etc.   The output will be a plain text into a TextBox.  I am trying to make those information appear in kind of columns, therefore I am trying to separate them with tab to make it clearer.  For example, instead of having:  Ann 26 Sarah 29 Paul 45   I would like it to show as:  Ann tab 26 Sarah tab 29 Paul tab 45  Any tip on how to insert the tabs into my text? I want to install Open JDK or Oracle JDK to my machine but I got an error during installation. The error is:  Selecting previously unselected package oracle-java8-installer. dpkg: warning: files list file for package 'unity-scope-gourmet' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'unity-scope-guayadeque' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'unity-scope-gmusicbrowser' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'unity-scope-manpages' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'unity-scope-firefoxbookmarks' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'unity-scope-gdrive' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'unity-scope-home' missing; assuming package has no files currently installed E: Sub-process /usr/bin/dpkg returned an error code (2)   I searched on Google and try to something for install/reinstall this packages. Finally i try to remove Unity. I faced this error for my every tries. I am using Xmonad. How can I fix this issue? Invoking JavaScript code in an iframe from the parent page Basically, I have an iframe embedded in a page and the iframe has some  routines I need to invoke from the parent page.  Now the opposite is quite simple as you only need to call parent.functionName(), but unfortunately, I need exactly the opposite of that.  Please note that my problem is not changing the source  of the iframe, but invoking a function defined in the iframe. The importance of a factor depends on how importance is defined.   The word importance has a fuzzy nature open to different   interpretations and the importance of a factor depends on how   importance is defined.      In other words, importance is ...   How can I complete this sentence with one word?   Edit:  I prefer to use a neutral word without negative connotations, since I'm not against having different interpretations in this case. Rather, I mean depending on how importance is defined, we need a different method. I have a generic method with this (dummy) code (yes I'm aware IList has predicates, but my code is not using IList but some other collection, anyway this is irrelevant for the question...)  static T FindThing&lt;T&gt;(IList collection, int id) where T : IThing, new() {     foreach T thing in collecion     {         if (thing.Id == id)             return thing;     }     return null;  // ERROR: Cannot convert null to type parameter 'T' because it could be a value type. Consider using 'default(T)' instead. }   This gives me a build error      "Cannot convert null to type parameter   'T' because it could be a value type.   Consider using 'default(T)' instead."   Can I avoid this error? How did Kylo Ren travel to the other planet in the TIE fighter? My ceiling fixture has all of a sudden stopped working properly. Half the diodes are dark and the others are blinking. Oddly, the same exact ones on each strip work and don't work. I have included a picture to show which ones are blinking and which ones don't work. I am wondering if it is something that I can fix? Maybe replace that driver? And if so, is there a good guide online to walk me through that process? Thanks in advance. When running Internet Explorer from the the modern UI, I can't find out how to access tabs.  I can create tabs using Ctrl + T, but I'm not sure how to switch between tabs, see what tabs I have open, etc.  How do I navigate between tabs when using the modern UI Internet Explorer?