Copy information to clipboard
How do I copy to the clipboard in JavaScript?
Our iPad is locked and we're not sure of the Apple ID / iCloud password The add comment link and comment box overlaps bounty box In 1D why are vectors, such as, e.g., velocity $v$ and acceleration $a$, not written with a vector arrow? In my textbook instantaneous velocity and acceleration are wrote only as $v$ and $a$ in the chapter of One dimensional motion. Instead, in two dimensional motion chapter they are written with the "arrow" symbol upon them, $\vec{v}$ and $\vec{a}$.  Why if they are both vectors they don't have an arrow in that particular chapter? I just can't get it. Can ubuntu be installed in intel kabylake 7th gen processor? I am using a 7th generation i5 processor(7200,2.50 ghz).The processor also have intel hd graphics 620 and nvidia geforce 940mx 2gb graphics card. I read previously that only windows 10 can be installed to this specific processor.  Is it true no version of ubuntu can be used with this processor?  If it's possible to install ubuntu using this processor, what additional steps other than the normal installation process should I undertake to get Ubuntu working? Our GM won't let us affect the story; the more I play the less fun I have. What do I do? I was wondering if anyone could give me some advice or anything on a GM situation.   My current GM is running a campaign and it is very video game/anime like. It started out super fun and the deeper we get the less fun I have. The reason is, it feels like GM is telling us a story but we cannot interact or change anything during his, "cut scenes". No matter what any player does he just says, "No it didn't work," or, "Yeah you do that. See if you roll a 20." We also can't damage any boss he has until we reach the point in the story that he has planned, so our interactions we have with villains don't matter.  I feel like he is making us sit there and listen to an anime he has come up with in his head. Since the players can't change or react to the key situations. I find my self sitting there thinking, why would I react, it doesn't matter.  It's not just me either. Another player feels the same way. I am going to talk to my other fellow players soon about it and see how they feel.  Side note: the GM as a person is very defensive and I am afraid to confront him about it because I know he will throw a fit. We have also caught him straight lying about abilities and stats on his own PC in other campaigns, and he doesn't take to kindly when you call him out.  He is new to GMing. This is only the second game I have played with him as a GM. The first one had one session the he just never wrote more for.  Is there anything I can do to maybe get him to more lenient with his story? I really enjoy the story for the most part and if he would just let our characters do things and give us a chance at stopping his villians or letting us change the story based on our actions, everything would be cool. Does a shortcode with a single attribute have to use an array? I want to build a shortcode that takes a single attribute.  Everything online is telling me to make it using an array:  // Add Shortcode function bg_comparison_points_shortcode( $atts ) {     // Attributes     $atts = shortcode_atts(         array(             'custom_field' =&gt; '',         ),         $atts,         'comparison_points'     );     return bg_calculate_points($custom_field); } add_shortcode( 'comparison_points', 'bg_comparison_points_shortcode' );   But in my mind something like this would be much simpler  // Add Shortcode function bg_comparison_points_shortcode( $custom_field ) {     return bg_calculate_points($custom_field); } add_shortcode( 'comparison_points', 'bg_comparison_points_shortcode' );   Is there a problem doing this simpler version? I'm planning a trip to recover a motorcycle from a distant city. The ideal trip would be flying to that location and coming back riding the bike, but that would require me to transport my riding gear with me in the plane: Leathers, boots, gloves, back protector and crash helmet.  All this is bulky and expensive stuff, and a crash helmet may be damaged if dropped or hit hard.   I don't expect any airline to allow me a crash helmet as hand luggage; and wearing it all the time is out of the question :-)   To complicate things, I would be coming back riding the bike, so any hard suitcase would have to be left behind.   How do people normally transport that kind of stuff? Rendering low and res/high res images Is it possible to render in Blender with reduced low res files and then ask Blender to render the final render with 4k high res files? Low and high res files would be numbered identically but would be located in different folders.  Many thanks How to show loading spinner in jQuery? In Prototype I can show a "loading..." image with this code:  var myAjax = new Ajax.Request( url, {method: 'get', parameters: pars,  onLoading: showLoad, onComplete: showResponse} );  function showLoad () {     ... }   In jQuery, I can load a server page into an element with this:  $('#message').load('index.php?pg=ajaxFlashcard');   but how do I attach a loading spinner to this command as I did in Prototype? Why do Borg move so poorly (like 50s movie robots)? How to isolate the text from a bitmap logo? I have been given a logo from a client that they want me to 'extract' or 'cut' the text out of and use just the text with a transparent background to fit with the design ethos of their marketing.   I'm using Photoshop CS6 and have tried using channels, magic wand and eraser but I can't get clean edges on the text.  I'm pretty new to Photoshop and any help appreciated. SQLiteException while inserting values in the database in Android I'm working through some old integrals and I found one that's interesting. I can't quite remember how it's proved, so if someone could set me off in the right direction, it would be really helpful. Thanks!   $\int_{\mathbb{R}} e^{-ax^2 + bx} dx = \sqrt{ \dfrac{\pi}{a}} e^{\frac{b^2}{4a}}$  I've tried change of variable, but I'm not sure this is the right approach. I have to try to add a field called 'Name' to a bunch of different feature classes using python, and then access the name of the feature class to fill in the field. I have no idea how to even start this! I know I need a loop but that's all I know. Show that the conditional statement is a tautology without using a truth table I have been attempting to use identities to get to the answer but I am unable to get anywhere. Here is the equation I am trying to prove tautological without using truth tables:  $[(p\rightarrow q) \land (q \rightarrow r)] \rightarrow (p \rightarrow r )$  And here is my attempt at using identities to work my way up. (a link to a page with a table of logical equivalence identities: )  $\lnot [(p \rightarrow q) \land (q \rightarrow r)] \lor (p \rightarrow r)$  $\lnot [(\lnot p \lor q) \land (q \rightarrow r)] \lor (p \rightarrow r)$  $[\lnot (\lnot p \lor q) \land \lnot (q \rightarrow r)] \lor (p \rightarrow r)$  $[(p\land \lnot q) \land (q \land \lnot r)] \lor (p \rightarrow r)$  I don't know where to go from there. I tend to use the terminal a lot,  So I wondering if there is a way I can make Ctrl+Alt+T focus the existing terminal if there is one, otherwise create a new terminal? Serial protocol delimiting/synchronization techniques As asynchronous serial communication is widely spread among electronic devices even nowadays, I believe many of us have encountered such a question from time to time. Consider an electronic device D and a computer PC connected with serial line (RS-232 or similar) and required to exchange information continuously. I.e. PC is sending a command frame each X ms, and D is replying with status report/telemetry frame each Y ms (The report can be sent as response to requests or independently - doesn't really matter here). The communication frames can contain any arbitrary binary data. Assuming the communication frames are fixed-length packets. The problem: As the protocol is continuous, the receiving side might loose the synchronization or just &quot;join&quot; in the middle of an ongoing sent frame, so it just won't know where the start of frame (SOF) is. A the data has different meaning based on its position relatively to the SOF, the received data will become corrupted, potentially forever. The required solution Reliable delimiting/synchronization scheme to detect the SOF with short recovery time (i.e. it shouldn't take more than, say 1 frame to resynchronize). The existing techniques I am aware (and using some) of: 1) Header / checksum - SOF as predefined byte value. Checksum in the end of frame.  Pros: Simple. Cons: Not reliable. Unknown recovery time.  2) Byte stuffing:  Pros: Reliable, fast recovery, can be used with any hardware Cons: Not that suitable for fixed-size frame-based communication  3) 9th bit marking - prepend each byte with additional bit, while SOF marked with 1 and the data bytes are marked with 0:  Pros: Reliable, fast recovery Cons: Requires hardware support. Not directly supported by most of PC hardware and software.  4) 8th bit marking - kind of emulation of the above, while using the 8th bit instead of 9th, which is leaving only 7bits for each data word.  Pros: Reliable, fast recovery, can be used with any hardware. Cons: Requires an encoding/decoding scheme from/to the conventional 8-bit representation to/from 7-bit representation. Somewhat wasteful.  5) Timeout based - assume the SOF as the first byte coming after some defined idle time.  Pros: No data overhead, simple. Cons: Not that reliable. Won't work well with poor timing systems like, say, Windows PC. Potential throughput overhead.  Question: What are the other possible techniques/solutions exist to address the problem? Can you point to the cons in the above list which can be easily worked around, thus removing them? How do you (or would you) design your systems protocol? Find all primes $p$ such that  $ p^3-4p+9 $ is a perfect square.   I tried a few different values for $p$, namely $2,3,5,7,$ and $11$. The prime $p =2,7,11$ all worked but $p =13$ didn't so it makes me wonder. How can I find all primes such that it is a perfect square?  EDIT: it turns out this is problem P25 in post number #63 at I'm studying abstract algebra for the first time.  let $F$ be a field. I learned that polynomials over field $F$ means polynomials with coefficients in $F$ (denoted by $F[x]$). But when I keep studying, I get to confused the word, 'polynomial functions from $F$ to $F$'.  Firstly, I consider this as induced functions from $F[x]$, so I guess all coefficients of these functions are in $F$. But let $F_{4}$ be a finite field consisting of four elements $\{0, 1, a, b\}$. and let $f: \{0,1\} \rightarrow \{0,1\}$ be a function defined by $$ f(x)=ax^2-ax$$ Since $\{0,1\}$ is a subfield of $F_{4}$ and $f(0)=0, f(1)=0$, I think $f$ is a example polynomial functions from $F$ to $F$ of which coefficients are not in $F$. Am I wrong? if so, please help me.  I encounter this problem while solving 'the set of all polynomial functions from $\Bbb{Z_{3}}$ to $\Bbb{Z_{3}}$ cannot possibly be isomorphic to $\Bbb{Z_{3}}[x]$'. Limit of $s_n = \int\limits_0^1 \frac{nx^{n-1}}{1+x} dx$ as $n \to \infty$