Can javascript extract exact (character-by-character) HTML from source document from selection?
Get the raw HTML of selected content using javascript
I've got two arrays of the same size.  I'd like to merge the two so the values of one are the key indexes of the new array, and the values of the new array are the values of the other.  Right now I'm just looping through the arrays and creating the new array manually, but I have a feeling there is a much more elegant way to go about this.  I don't see any array functions for this purpose, but maybe I missed something?  Is there a simple way to this along these lines?  $mapped_array = mapkeys($array_with_keys, $array_with_values); How can I get a brace on the right, not the left, to group cases, using cases? (I know actual cases look better with the brace on the left, but the items I need to group are not literally cases. They are a set of steps in an algorithm which I want to consider as an item.)  The following puts the brace on the left. All I need to do is to flip it to the right.  \begin{align} \begin{cases} a&amp;=bbb\\ c&amp;=ddddddd\\ e&amp;=ffffffffff \end{cases} \end{align}   Thanks for any help with this! Set "this" variable easily? Install App Image such as beaker browser and pin it to dock (favorites) in Ubuntu 20.04? How do I parse command line arguments in Java? What is a good way of parsing command line arguments in Java? Energy momentum tensor from Noether's theorem in the book Quantum Field Theory by Itzykson and Zuber the following derivation for the stress-energy tensor is proposed (p.22):  Assume a Lagrangian density depending on the spacetime coordinates $x$ only through fields and their gradients. Under a translation we have $$\mathcal L (x+a)=\mathcal L[\phi_i(x+a),\partial_\mu\phi_i(x+a)].$$  Consider an infinitesimal $x$-dependent transformation $$\delta\phi_i=\delta a^\mu(x)\partial_\mu\phi_i(x),$$ $$\delta\partial_u\phi_i(x)=\delta a^\nu \partial_\nu\partial_\mu\phi_i(x)+\partial_\mu[\delta a^\nu (x)]\partial_\nu \phi_i(x).$$  The proof then proceeds with variation of the action and integration by parts. But why do we consider an $x$-dependent local transformation instead of a global transformation? Topology: Example of a compact set but its closure not compact Can anyone gives me an example of a compact subset such that its closure is not compact please? Thank you. I noticed that when I had a helium filled, latex balloon inside of my car, it moved forward in the cabin as I accelerated forward. The faster I accelerated forward, the faster the balloon went from the back of the car to the front of the car. The balloon didn't have a string.  This became a game with my 4 year old as we drove home. We figured out where the balloon would go based on how fast I accelerated, turned corners etc.  I expected that it would act a lot like the water in a cup does, but it was the total opposite it seemed.  What forces caused this behavior?  I assumed it has something to do with the fluid dynamics in the closed cabin, but I can't figure it out. I've been reading an  ( eMagazine) relating to the Raspberry Pi; "An ARM GNU/Linux box for $25."  In the article, page 17 at the bottom it shows an area on the Pi where a track zigzags next to a straight one with the explanation text:     The “wiggles” in tracks, ensure signals are matched  electrically,   reducing interference and signal delay.  This is particularly   important for high speed video  data and HDMI signals.     I have very limited knowledge of electrical engineering so perhaps this is a very simple question but why would you incorporate these 'wiggles' in a PCB design?  I realise the quote gives me an answer and I sort of understand the interference point due to problems with power cables and coaxial cables running next to each other but I'd appreciate something assuming very little knowledge that explained why you would get the problems and how wiggles help. For example, why isn't the board covered in wiggles? How can I remove the Trash icon from the Unity launcher? I would like to not show the trash icon at the bottom of the Unity launcher.  Is this possible without having to recompile anything? :P How do I suppress error messages from cp? Limit involving binomial coefficients: $\lim_{n\to\infty}\left(\binom{n}{0}\binom{n}{1}\dots\binom{n}{n}\right)^{\frac{1}{n(n+1)}}$ I am facing difficulty with the following limit. $$ \lim_{n\to\infty}\left(\binom{n}{0}\binom{n}{1}\dots\binom{n}{n}\right)^{\frac{1}{n(n+1)}} $$ I tried to take log both sides but I could not simplify the resulting expression. Please help in this regard. Thanks. what is the difference between "yet" and "still"?   When we can use "still"? and when we can use "yet"?   Are they synonyms or not?  "The plan could yet succeed." Can I use "still" in that sentence instead of "yet"?  "I still don't understand." Can I use "yet" in that sentence too? How do I remove code duplication between similar const and non-const member functions? Let's say I have the following class X where I want to return access to an internal member:  class Z {     // details };  class X {     std::vector&lt;Z&gt; vecZ;  public:     Z&amp; Z(size_t index)     {         // massive amounts of code for validating index          Z&amp; ret = vecZ[index];          // even more code for determining that the Z instance         // at index is *exactly* the right sort of Z (a process         // which involves calculating leap years in which         // religious holidays fall on Tuesdays for         // the next thousand years or so)          return ret;     }     const Z&amp; Z(size_t index) const     {         // identical to non-const X::Z(), except printed in         // a lighter shade of gray since         // we're running low on toner by this point     } };   The two member functions X::Z() and X::Z() const have identical code inside the braces.  This is duplicate code and can cause maintenance problems for long functions with complex logic.    Is there a way to avoid this code duplication? Just recently, the right-click context menus in Windows 7 have been acting in a kind of left-handed way. That is, when possible, the initial menu appears to the left of the mouse pointer. When I hover over a submenu option, the next level of context menu appears to the left of the first and so-on.  Basically, what normally happens when you're right at the right-hand edge of the screen is happening all the time - except when I'm at the left-hand edge. Perhaps it's some kind of left-handed users option, but that doesn't seem likely - more like a right-to-left language option, except that I've never even tried to use a right-to-left language.  I haven't checked every app. for the issue - probably only Windows Explorer, definitely not in Firefox, for the moment that's as far as I've checked.  Scratch that - this affects menu bars as well as context menus. The menus dangle down to the left of the menu-bar item instead of the right, and submenus open to the left too. This seems to apply to most applications, but not too Firefox or Thunderbird.  I find this extremely annoying.  I have no idea how this occurred, though it isn't the only weird glitch I've had in Windows 7 in the last few days - see   I assume there's a setting somewhere that has got changed, but I can't find anything. There's also a chance that I've suffered some kind of registry corruption, so I might need to apply a fix in the registry - not something that scares me, but I need to know what to fix and how.  So - does anyone know what setting has been changed, and how I can fix it?  Also, beyond CCleaner (which I already have), are there any tips on making sure that the registry stays clean and sane?  Finally, both Microsoft Security Essentials and Malwarebytes Antimalware seem happy that I don't have a malware problem. Should my recent glitches make me doubt that? What is the difference between Interest Rate and APY on savings accounts, CDs, etc?  Is there a simple formula to convert the two? I am trying get an unused server up and running, it booted fine but i was greeted with the login window and none of the known passwords seem to work. The server I am trying to get to work is not a Domain Controller and has not been used in a long time.  OS: Windows 2003 Server R2 Enterprise Edition  I tried Ophcrack XP (there is no WinServer version of Ophcrack) - it couldn't locate the partitions with hashes. I tried mounting the partitions myself (#mount /dev/hda*x* /mnt/ntfs), but it gave me an error saying /dev/hda*x* didn't exist.  Next I tried booting into a Ubuntu 10.04.3 LiveCD so that I could install and use chntpw - no go, Ubuntu Live wouldn't boot.  Based on what I've read up the following tools may be of help:   Windows Password recovery Petter Nordahl-Hagen's Offline NT Password &amp; Registry Editor Openwall's John the Ripper EBCD – Emergency Boot CD - Bootable CD (R)ecovery (I)s (P)ossible Linux rescue system   I am hoping that someone here has prior experience with Win2k3 Administrator password resets so that I don't end up having to try all of the above to find out which one works. Do I have to create vector files at the correct print size? What is a pull up and pull down? Can some one explain this terminology please I think I understand it but not completely sure.   I think pull down is where you place a resistor between +V and the other component and pull up is where you place the resistor between 0v and the component.    If I am completely wrong then let me know! Rendered image looks pixelated When I hit F12 to render an image and zoom in it is quickly pixelated. How can I render a higher res display? I have looked through the settings and couldn't find a solution.