Javascript unload event handling
Detecting the onload event of a window opened with window.open
If a mass moves close to the speed of light, does it turn into a black hole? Is there a dominant gene for right-handedness? Has there been any definitive research about handedness being genetic? Also, why is right-handedness clearly dominant in humans? I'm interested in evolutionary theories, as well as any molecular explanation (if known). How do I get the difference between two Dates in JavaScript? I'm creating an application which lets you define events with a time frame.  I want to automatically fill in the end date when the user selects or changes the start date.  I can't quite figure out, however, how to get the difference between the two times, and then how to create a new end Date using that difference. Dropping Internet connection on Realtek Semiconductor Co., Ltd. RTL8821AE I have continuous problems of network dropping connections on wifi with ubuntu 16.04, I have an ASUS R510J, this is my network card:  ##### lspci #############################  03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821AE 802.11ac PCIe Wireless Network Adapter [10ec:8821]         Subsystem: AzureWave RTL8821AE 802.11ac PCIe Wireless Network Adapter [1a3b:2161]         Kernel driver in use: rtl8821ae  04:00.1 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 12)         Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:200f]         Kernel driver in use: r8169   sudo service network-manager restart doesnt's help, as I never regain internet connection after it drops, and I have to restart the PC. On Ethernet cable I have no problem.  What do you think is the issue? drivers?  thank you Converting FLV to MP4 Using FFMPEG and Preserving the Quality Im trying to use ffmpeg to convert my flv files to mp4 to play them on iOS devices but the converted video has a much worse quality than the original one.  Here is the command i use:  ffmpeg -i input.flv -ar 22050 output.mp4   I would really appreciate if someone could provide me with the best settings for flv to mp4 conversion. Cycle Normal Pass in Camera Space Do extension fields always belong to a bigger field? Let $F$ be a field, $E_1$ and $E_2$ are two distinct extension fields of $F$. Is it the case that we can always somehow find a field $G$ that contains both $E_1$ and $E_2$? In other words, could extensions of fields have different 'direction's such that they are incompatible?  Edit: I began to think about this problem while reading a proof. $F$ is a field. $a$ and $b$ are algebraic over $F$. $p(x)$ and $q(x)$ are two polynomials in $F[x]$ of minimum degree that respectively make $a$ and $b$ a zero. The proof claims that there is an extension $K$ of $F$ such that all distinct zeros of $p(x)$ and $q(x)$ lie in $K$. For a single polynomial, I know this kind of field exists because of the existence of splitting field, why it is true for two polynomials? What does the number in parentheses shown after Unix command names in manpages mean? For example: man(1), find(3), updatedb(2)?   What do the numbers in parentheses (Brit. "brackets") mean? What does this black-font Israeli stamp on my Passport mean? I applied for B2 Tourist visa at Israel embassy in New Delhi last week. But my visa application got rejected and stamped a black stamp on my passport.   What does black stamp mean? After how much time should I reapply for tourist visa? Oddly wide spaces in subsection title I have a problem, this is what it looks like:     And this is the code:  \subsection{Bakterienst\"amme und Anzuchtbedingungen}   Where does the huge whitespace come from? Is it possible to extrude a curve in two directions? I want to extrude a curve in two directions.    Or join both curves into one, is it possible? I've tried copying it and then join segments, but I don't see Remove Doubles option while working with curves. Suppose that $X_1, \ldots, X_n \sim N(0,1)$ are independent random variables. I am interested in finding a constant C that satisfies:  $$ E\left[\max_{1\leq i\leq n}|X_i|\right] \leq C \sqrt{log\  n} $$  I know one method is to employ the moment generating function trick, then take logs of both sides. However, I was wondering if there exists a more direct method. thanks! Does infinity exist in physical systems? Sometimes people fail at asking a question by being too broad, unclear like . So I'll take a stab at what I believe to be the same question, but more concise and clearly stated:     Does infinity exist in either terms of structure, parameters, or   measurement in any physical systems?   Can infinity have any real connection with reality?  Or is infinity purely a mathematical concept just used by physicists as a convenient way to describe the very large, an approximation?  I have heard that if you model a physical system (), and you run into infinity as a solution, then you have either made an error in your calculations or your model is wrong. Boot stuck at logo screen after upgrading to 14.10 How to mount a remote (over SSH) directory to be available like a local directory (incl. in shell, not just in Gnome)? How to remove ":" (colon) when displaying field name? I created a custom content type with some text fields. In the view settings of that content type I defined both to appear and as well their titles (names of the fields) to be displayed above the content of the fields respectively.  But how can I remove the trailing colon of the titles? Is there a way of modifying the way field names are display just for certain content types? I do not want this altered site wide (e.g. for all fields of all content types).  PS: I'm already using the "views" module to define a special layout for this custom content type. Probably there is a way to carry out these changes with the help of the "views" module and a custom layout template?  /edit/ I did not create a view (as with the "views" module) to display that content but used Drupal's own content type view configuration (maybe called "display"). I'm working with a localized Drupal and retranslating the different words.  Remark: Using Drupal 7.10 with Views 7.x-3.0-rc3 If a Matrix Has Only Zero as an Eigen-Value Then It Is Nilpotent Prove that a matrix with only zero eigenvalues must be nilpotent.   How will I be able to prove this? how I can continue this limit resolution?  The limit is:   $$ \lim_{n \to \infty}{\sqrt[n]{\frac{n!}{n^n}}} $$  This is that I have done:  I apply this test: $ \lim_{n \to \infty}{\sqrt[n]{a_n}} = \frac{a_{n+1}}{a_n} $  Operating and simplifying I arrive to this point: $$ \lim_{n \to \infty}{\frac{n^n}{(n+1)^n}} $$  I've done something wrong? Thanks! I was wondering if it was possible to use any of the API's provided by SF to build an external (C#, Java) application to manage building changesets.   Building changesets is very tedious when trying to include 100's of items and I was hoping to streamline the process for our team by building an application I can load an excel file to with the required components and have it build the outbound changeset. There are a variety of characters that are not legally encodeable in XML 1.0, e.g. U+0007 ('bell') and U+001B ('escape'). Most of the interesting ones are non-whitespace 'control' characters.    It's clear from (e.g.)  and others that it's  -- but can anyone illuminate me as to why the XML spec forbids these characters?   It seems like it could have been required that they be encoded in escapes, e.g. as &amp;#x0007; and &amp;#x001B; respectively, but perhaps there's a practical reason that the characters were forbidden rather than required to be escaped?  Answerers have suggested that there is some motivation towards avoiding transmission control characters, but Unicode includes many other control-like characters (consider U+200C "zero width non joiner"). I recognize there may be no good reason for this behavior, but I would still like to understand it better.  It's particularly frustrating because when those character values appear in other encodings data formats, I end up "double-escaping" new XML documents that need to encode this.