Access clipboard from Javascript
JavaScript get clipboard data on paste event (Cross browser)
What are my options if I need to move a database from SQL Server 2012(32bit) to SQL Server 2005(64bit)?  I know I cannot:   restore a backup of the database on SQL Server 2005 detach &amp; attach   I know I can:   use import data wizard, and I tried it on one database, but it only moves data, and even that was troublesome as I needed to do a lot of work creating temp tables to maintain identity columns, recreating all FKs, indexes etc.    Is there an easier option? limit of the sequence $a_n=1+\frac{1}{a_{n-1}}$ and $a_1=1$ I'm still new to ZFS. I've been using Nexenta but I'm thinking of switching to OpenIndiana or Solaris 11 Express. Right now, I'm at a point of considering virtualizing the ZFS server as a guest within either ESXi, Hyper-V or XenServer (I haven't decided which one yet - I'm leaning towards ESXi for VMDirectPath and FreeBSD support).   The primary reason being that it seems like I have enough resources to go around that I could easily have 1-3 other VMs running concurrently. Mostly Windows Server. Maybe a Linux/BSD VM as well. I'd like the virtualized ZFS server to host all the data for the other VMs so their data could be kept on a physically separate disks from the ZFS disks (mount as iscsi or nfs).  The server currently has an AMD Phenom II with 6 total cores (2 unlocked), 16GB RAM (maxed out) and an LSI SAS 1068E HBA with (7) 1TB SATA II disks attached (planning on RAIDZ2 with hot spare). I also have (4) 32GB SATA II SSDs attached to the motherboard. I'm hoping to mirror two of the SSDs to a boot mirror (for the virtual host), and leave the other two SSDs for ZIL and L2ARC (for the ZFS VM guest). I'm willing to add two more disks to store the VM guests and allocate all seven of the current disks as ZFS storage. Note: The motherboard does not have IOMMU support as the 880G doesn't support it, but I do have an 890FX board which does have IOMMU if it makes a huge difference.  My questions are:  1) Is it wise to do this? I don't see any obviously downside (which makes me wonder why no one else has mentioned it). I feel like I could be making a huge oversight and I'd hate to commit to this, move over all my data only to go fubar from some minute detail I missed.  2) ZFS virtual guest performance? I'm willing to take a small performance hit but I'd think if the VM guest has full disk access to the disks that at the very least, disk I/O performance will be negligible (in comparison to running ZFS non-virtualized). Can anyone speak to this from experience hosting a ZFS server as a VM guest? Every element outside the maximal ideal of a local ring is a unit A homework question from my algebra class asks:     Show that in a local ring $R$ with maximal ideal $M$, every element outside $M$ is a unit.   My argument is that since $M$ is maximal $R /M $ is a field and so for any $ x \in R \backslash M $, $ x + M $ has a multiplicative inverse, which implies $ x $ is a unit.  I don't see where we need the fact that $R$ is a local ring. How to locate a font in Ubuntu? Ubuntu desktop with 12.04 is about to crash.  Installed 13.04 on a new machine, want to transfer Book Antiqua font from old machine to the new one.  How do I find it on the old machine?  My /usr directory is empty. My fonts.conf file has these lines: &lt;!-- Font directory list --&gt; &lt;dir&gt;/usr/share/fonts&lt;/dir&gt; &lt;dir&gt;/usr/x11R6/lib/X11/fonts&lt;/dir&gt;  &lt;dir&gt;/usr/local/share/fonts&lt;/dir&gt; &lt;dir&gt;~/.fonts&lt;/dir&gt;  Don't know what this means, but my /usr directory has nothing in it. Just wondering if someone can give me an explanation for this capacitor layout - what is it's function? The chip to the right is an ADC.  Circled in blue.    I'm guessing it is well known but i don't know how to search for it. Are the square roots of all non-perfect squares irrational? In the context of topological spaces, I see the following major countability properties:  A space is:   "separable" iff it has a countable dense subset "second countable" iff if has a countable basis "first countable" iff the neighbourhood system of every point has a countable local basis.   (Definitions taken from Counterexamples in Topology by Steen and Seebach, 2nd ed. 1978 -- there may be differences in wording from other sources.)  The question I have is: "separable" into what, exactly? By which I mean to say: what is the thinking behind calling such a condition "separable"?  It appears not to be related to the concept of "separation axioms", which do immediately and obviously invoke an intuitive notation of separation, neither does it seem to have anything to do with "separated sets".  (Anyone using the spelling "seperable" or "seperated" will be immediately downvoted. :-) ) Is it permissible to use somebody else's words (without quotations) to describe a concept once their work is cited? Quite often one comes across a really succinct and precise explanation of a concept. I'm wondering if it is permissible to use this explanation verbatim, if the source work is cited in your paper (next to the explanation)? What's in question here is at most 3 sentences. What's the last character in a file? I just read the answers to  and everyone said to delete the last character. My question is,  isn't the eof character the last one? How to find an ellipse , given 2 passing points and the tangents at them? Please answer to a question , how to find an ellipse which passes the 2 given points and has the given tangents at them. And one related question is that the given condition can decide just one ellipse which satisfies it?  Thank you in advance.  Edit : May be , I can say the first answer (by Mr. André Nicolas) is for the general case. Is there no special case where only a finite set of ellipses satisfies the condition?  Edit : According to the answers and comments , I can compute an arbitrary chosen ellipse for my condition (using the method by Mr.Patrick Da Silva). But there are possibly many others which satisfy my conditions. Am I right? I thought it was The Tommyknockers by Stephen King, but after a check with Wikipedia, it appears that's not the case.  What I remember about the story (a TV movie I think, but definitely based on a book) was that the world is created anew every night, and that the old, used up, Earth was eaten nightly by some scary creatures.  The major plot point involved some protagonists not getting onto the new world at midnight, and having to escape from the monsters that were eating up yesterday's planet.  Does this ring a bell for anyone? I'm finding it very hard to Google for. In electromagnetism, why does nature prefer the right-hand rule over the left-hand rule? At school I learnt the  to remember the resulting direction of different phenomena, such as geometrical cross products, mechanical torque, or the direction a screw will move when turning it. This directions are however decided by humans, and we could have easily defined the directions in the opposite way.  However the right hand rule also predicts phenomena which is not arbitrarily set by humans, but is intrinsic to the nature. If you have a coil in which you put some current, and the nature creates a magnetic field in a direction perpendicular to it, the direction depends on the right hand rule.  My question is, why this direction and not the opposite? Nature tends to be symmetric and not have apparent preferences for two equal options, so in a so why is one direction preferred over the other one? Why doesn't a "left hand" rule apply? Pass a PHP string to a JavaScript variable (and escape newlines) What is the easiest way to encode a PHP string for output to a JavaScript variable?  I have a PHP string which includes quotes and newlines.  I need the contents of this string to be put into a JavaScript variable.  Normally, I would just construct my JavaScript in a PHP file, à la:  &lt;script&gt;   var myvar = "&lt;?php echo $myVarValue;?&gt;"; &lt;/script&gt;   However, this doesn't work when $myVarValue contains quotes or newlines. Which of the following is also an ideal? If $U,V$ are ideals of a ring $R$, then which of the following is also an ideal of $R$?   $U+V=\{u+v\mid u\in U,v\in V\}$ $U\cdot V=\{u\cdot v\mid u\in U,v\in V\}$ $U\cap V$   My attempt: I have proved $U+V$ and $U\cap V$ are ideals of $R$.  My problem: I have problem about the second option. I think it is not ideal of $R$. If I am wrong then please prove this otherwise give one counter example to show that $U\cdot V$ is not ideal of $R$. How can you prove $\frac{n(n+1)(2n+1)}{6}+(n+1)^2= \frac{(n+1)(n+2)(2n+3)}{6}$ without much effort? I will keep it short and take only an extract (most important part) of   the old task.      $$\frac{n(n+1)(2n+1)}{6}+(n+1)^2= \frac{(n+1)(n+2)(2n+3)}{6}$$   What I have done is a lot work and time consuming, I have "simply" solved it. But I think with a lot less work, there would be an easier and faster way. It's just I cannot see it : /  If anyone wants see, here is my long solution which I'm not happy with:  $$\frac{n(n+1)(2n+1)+6(n+1)^2}{6}=\frac{(n^2+2n+n+2)(2n+3)}{6} \Leftrightarrow$$  $$\Leftrightarrow \frac{(2n^3+n^2+2n^2+n)+6n^2+12n+6}{6} = \frac{(n^2+3n+2)(2n+3)}{6} \Leftrightarrow$$  $$\Leftrightarrow \frac{2n^3+3n^2+n+6n^2+12n+6}{6}=\frac{2n^3+3n^2+6n^2+9n+4n+6}{6} \Leftrightarrow$$  $$\Leftrightarrow \frac{2n^3+9n^2+13n+6}{6}=\frac{2n^3+9n^2+13n+6}{6}$$ The reminder email says:     We noticed you have not accepted our invitation to join Stack Overflow Careers. Only 3 days remain before it expires [...]      But please act soon: this invitation expires in 14 days [...]   Is it 3 days or 14 days now? Safest way to transport a laptop during flight I flew a long range flight carrying my laptop, a quite heavy one, inside a neoprene briefcase in the passenger cabin. The recommendation by the aircrew was to place it in the overhead compartment or under the seat in front of me. However, during take-off and landing, the vibrations on the plane are quite strong and, as a result, it received minor damage.   Placing them in the overhead compartment might be equivalent to placing it on the floor under the seat, with the added issue of additional luggage in the compartment shifting.  I considered the alternative of holding the laptop by the handle while sitting, so it won't be any contact with the aircraft's floor. This is impracticable during cruise, but I thought it could be better during the take-off and landing segments. Another option I considered is to wrap it with completely with bubble wrap before boarding the plane.   Which is the safest way to transport a laptop during flight? I would like to use Class.newInstance() but the class I am instantiating does not have a nullary constructor. Therefore I need to be able to pass in constructor arguments. Is there a way to do this? Make an Ubuntu bootable USB drive for a PC using Mac?