How to pass arbitrary arguments to a javascript constructor
Use of .apply() with 'new' operator. Is this possible?
Convert a JSON string to object in Java ME? From what I understood, cardinal numbers are defined as:  $\aleph_0$ = the cardinality of $\mathbb{N}$ $\aleph_{n+1}$ = is the least cardinal number greater than $\aleph_n$  The continuum hypothesis states that the cardinality of $\mathbb{R}$ is  $\aleph_1$. I more or less understand this cannot be proven (does not follow from ZFC).  However, can it be proven dat there in fact is a 'least cardinal number' greater than $\aleph_0$?  Is it possible that there are sets with cardinality $\aleph_{1/2}$, $\aleph_{1/3}$, et cetera, so to speak?  Or expressed differently: is it possible that for every set A with cardinality CA > $\aleph_0$, there exists another set B with cardinality CB where CA > CB > $\aleph_0$? How to handle a native OS (Ubuntu) file upload window in selenium webdriver with python? This is my first time here but I have already posted this question on SO. I keep getting solutions for Windows + Java and not for Linux or python for that matter.  I am using Selenium and Python to automate a file upload application for the past many hours but nothing helpful!   The HTML DOM structure for this file upload is an input tag with its type attribute value = 'file'. I know I can make use of the send_keys.   The problem is I am not supposed to use send_keys() (as per the question I am trying to solve). The assumption is there are other ways of doing it.  Can anyone suggest me alternative ways to upload the file? I do get solutions for windows but not for Linux(Ubuntu). I know there are applications/tools to automate GUI components like AutoIt but there is nothing for Linux close to AutoIt.  I can say I have done my homework to find a solution. Only after not finding anything useful, I am asking this question, please help! In the past, Google Chrome allowed toggling of plugins (like enabling/disabling Flash) from the chrome://plugins URL. This page no longer exists (as of Chrome 57.0.2987.98).   What is the way to access Chrome plugins from this point onwards? I have a series of ranges with start dates and end dates. I want to check to see if a date is within that range.  Date.before() and Date.after() seem to be a little awkward to use. What I really need is something like this pseudocode:  boolean isWithinRange(Date testDate) {     return testDate &gt;= startDate &amp;&amp; testDate &lt;= endDate; }   Not sure if it's relevant, but the dates I'm pulling from the database have timestamps. What is the best way to restore the state of ViewController Prologue:  This is an effort to follow up on  which is marked as a duplicate of  highly voted and status-declined feature request (although they seem to be different, one focusing on the OP and the other on the downvoter).   My New Year's resolution was to downvote more.  So on January 3rd or so, I saw a post that was low quality, and downvoted.  Two days later, I came back to see if it was ready to be deleted or had gotten piled with downvotes, to find it with a significant positive score!  At which point, I noticed that the answer had been significantly improved.  So I retracted my downvote, changed it to an upvote, and immediately resumed my dearth of downvoting again.  I think I have a responsibility to downvote bad posts, despite that oh-so-painful -1 rep penalty.  But if I am also going to have the responsibility to follow up on every downvote I cast, I'm not going to bother. I don't want my downvote to leave a residual penalty on posts that were once low quality, and I am not going to trouble myself to keep checking up on every post I downvoted.  Can a downvoter have an option to be notified when a post they voted down was edited?  I wouldn't make this an automatic thing, because not all downvoters want it, and it isn't applicable to all cases of downvoting (although  that this should be part of the responsibility of a downvoter).  Personally, I would make this a universal toggle on-off option on the user profile page, not a question-by-question option, but I don't have strong feelings about it. From :     Importantly, the DDH assumption does not hold in the multiplicative group $\mathbb {Z} _{p}^{*}$, where $p$ is prime. This is because given $g^{a}$ and $g^{b}$, one can efficiently compute the Legendre symbol of $g^{ab}$, giving a successful method to distinguish $g^{ab}$ from a random group element.   The only way I can think of to distinguish $g^c$ from $g^{ab}$ is:    If $\left(\frac{g}{p}\right)=-1$, then $\left(\frac{g^{ab}}{p}\right) = 1$ if and only if $a$ or $b$ is even (which is $3/4$ of the times). So if $\left(\frac{g^c}{p}\right) =-1$, probably $g^c\neq g^{ab}$. Nothing is certain.   How'd do you compute $\left(\frac{g^{ab}}{p}\right)$ given $g^a$ and $g^b$? Package Listings Warning: Text dropped after begin of listing when calling function I'm trying to this:  \newcommand{\code}[1] {\begin{lstlisting} {#1} \end{lstlisting} }   But I keep getting this error:  Package Listings Warning: Text dropped after begin of listing   I'm calling \usepackage and all so, do any of you knows how to solve this? When referring to flash exposure, what does "max sync speed" mean? Which race in Star Trek universe was the first to invent Warp technology? Humans look like late member of Warp Drive community. Klingons were capable of interstellar travel from the time of Kahless. Vulcans were in contact with Andorians from ancient times (ST: Enterprise).  Which one first invented warp capabilities: Klingons or Vulcans? Or, others? Why doesn't the last digit method work for divisibility by 4? I wish to explain to a grade 5 kid, the answer to the question - 'When can we know that the observing the last digit of a number will not be sufficient to determine its divisibility by a given N?'  For example - It doesn't work for 3, because we get all sorts of digits, i.e. from 0 to 9, at the units place. The same reason works for 7 and 9.   But what would be a convincing argument for 4 and 8? Even though the last digits form a pattern - 0, 2, 4, 6 and 8 - but we're still not sure about its divisibility. Ok, so I have an index.php file which has to process many different file types.  how do I guess the filetype based on the REQUEST_URI.  If I request http://site/image.jpg, and all requests redirect through index.php, which looks like this  &lt;?php    include('/www/site'.$_SERVER['REQUEST_URI']); ?&gt;   How would I make that work correctly?  Should I test based on the extension of the file requested, or is there a way to get the filetype? Let $f: K^\bullet \to L^\bullet$ be homotopy equivalence. From theory of triangulated categories it follows that $C(f)^\bullet$ is contractible. But how can i produce explicit formula for homotopy of $Id_{C(f)^\bullet}$ and $0_{C(f)^\bullet}$? How do you update an Excel file (Data Refresh and update formulas) WITHOUT opening the file? I have an Excel file that want to update and save automatically with out having to open it or manually interact with.  Manually, I open the file up and hit data refresh which goes and does a SQL query and then hit F9 for the formulas to update and then I just close/save.    (I then would mail the file out to people using a perl script or use SAS JMP to run some numbers/charts and also mail them out.  Basically I need to script some things which require the XLS file to be updated.) I have created a fishnet grid (3km x 3km) over a vector polygon.   I now want to clip the fishnet over the vector polygon retaining all grid squares within the boundary of the polygon.   Therefore I want all squares that would typically be clipped into partial squares to remain as whole squares.   Does anybody know how to do this? Possible Duplicate:             I want to add some shell scripts in my launcher as shortcuts..  They are located deep inside and i have to navigate to it every time to execute them...  I tried  link where the 2nd answers seems to solvee it but as said in comments neither can i find any option to add a launcher..  I guess it existed in 11.04 with a "+" button on launcher but i use 12.04.  So how do i get this working?? And i need those commands everytime for sure..! I'm trying to identify a science fiction series on UK TV during the 70s, but I can only recall the following:   A party of adults and children. There was a woman with a telepathic bond to her cat: she could look into its eyes to see what it had seen. Time travel was involved. I think it may have been inadvertent or uncontrolled time travel. On one occasion the party encountered an Elizabethan seaman who demanded to know if Elizabeth was still queen. They party replied "err... yes" because they didn't want to have to explain time travel. Do Stack Overflow and other Stack Exchange sites have an app I can use? I want to kill a whole process tree.  What is the best way to do this using any common scripting languages? I am looking for a simple solution.