In my HTMl file, I am trying to populate a span text zone with some voice-recognized text. I am struggling with one thing here:  Auto-scroll on the span zone:  &lt;span id="final_span" class="final"&gt;&lt;/span&gt;   Javascript code:  var final_span = document.getElementById("final_span"); finalDiv.innerHTML += '&amp;nbsp' + data + '&lt;p&gt;'; finalDiv.scrollTop = finalDiv.scrollHeight;    The data inside the JavaScript keeps increasing, but when it exceeds the span limit, a scroll bar on the right appears because of the CSS code I wrote:   overflow-y: scroll; I would like to build it as auto-scroll until the bottom when text exceeds.  Thanks for your time.
I am creating a chat using Ajax requests and I'm trying to get messages div to scroll to the bottom without much luck. I am wrapping everything in this div: #scroll {     height:400px;     overflow:scroll; }  Is there a way to keep it scrolled to the bottom by default using JS? Is there a way to keep it scrolled to the bottom after an ajax request?
Does voltage drop occur with zero load and zero resistance Prove that $f'(a)=\lim_{x\rightarrow a}f'(x)$. This is basically the same as  for the Android app, except I am making the request for the iOS app.  When viewing a question in the iOS app, I'd like to see the total number of views for the question. What are the different kinds of boxes in (La)TeX? I've seen hbox, vbox, mbox, parbox and others used in various code samples. What are the different kinds of box in (La)Tex? Which are suitable for use in LaTeX, as opposed to plain TeX? If an effect would prevent a spell from doing damage, does it continue to prevent that damage after the spell changes zones? Anthony casts , targeting Nathan's .  Nathan casts and resolves , choosing to 1) prevent all damage that would be dealt by Searing Blood this turn and 2) put a +1/+1 counter on Elvish Mystic.  Searing Blood resolves, deals no damage, and goes to the graveyard.  Anthony casts and resolves  to kill Elvish Mystic.  Searing Blood triggers from the graveyard, because Elvish Mystic died. Does the prevention effect created by Dromoka's command still apply to it after it changes zones? In other words, will Searing Blood deal 3 damage to Nathan? Is propagation of uncertainties linear? If $A \in M_{n}(\Bbb{R})$ is an Upper triangular matrix with diagonal entries $1$ such that  $A \neq I$, then what can we say about the diagonalizability of $A$ ?  I know that if the matrix has distinct eigenvalues or the set of eigenvectors are linearly independent then the matrix is diagonalizable.  And that the eigenvalues of the triangular matrices are given by the diagonal elements like  and , but they work nocely if we had distinct elements on the main diagonal.  But in my case I have same value 1 on the main diagonal, how can I approach about the diagonalizability of the matrix? C#: How to create an attribute on a method triggering an event when it is invoked? I'm trying to make a systemd timer that runs every 15 minutes. Right now I have:     timer-fifteen.timer:  [Unit] Description=15min timer  [Timer] OnBootSec=0min OnCalendar=*:*:0,15,30,45 Unit=timer-fifteen.target  [Install] WantedBy=basic.target    timer-fifteen.target:  [Unit] Description=15min Timer Target StopWhenUnneeded=yes    This runs over and over again without stopping. Does it need to be *:0,15,30,45:* instead? How can I make this work? Since the latest versions (ICS+?) no longer have mass storage, is there any viable alternative to MTP?  The protocol seems inherently broken and the decision to regress to this format seems like a very 'iphone-esque' move (dumb things down, take away power from the users).  There seem to be numerous problems  with files not showing and it seems to me that transferring a file should be simpler than requiring a system reboot - I am unreasonably demanding that way.  I'm aware of tools like Wi-Fi file transfer but often I find myself in areas without wifi, with just my laptop, phone and a usb cable. The other day, for example, I was one a plane, which is an environment decidedly non-conducive to using a wireless system. How to add user to a group from Mac OS X command line? trying to add a user to a group from the command line but can't figure out how?   Specifically this is on Mac OS X Server 10.5.8  like to add user to 'admin' and 'wheel' groups Must a husband and wife make separate online applications for a UK Standard Visitor visa, and so attend separate appointments for biometrics? Javascript mechanism to autoscroll to the bottom of a growing page? What to do with cross-site duplicates? What's the right course of action for cross-site duplicates?  There are two flavors:   A question is posted which belongs on another site and ends up already having been asked there. I can't find an example right now, but it's bound to happen soon if it hasn't already. The same question is posted in two places at the same time. Take  for example, which is a duplicate of , posted within a half hour of each other by the same user.   Possible actions:   Move it to the proper site and close it once it gets there as a duplicate. Provide a way to close it right away as a cross-site duplicate, without moving it first. Flag it and let a moderator merge them. Close it as "no longer relevant" or something else.   Additionally, flavor 2 is a bit of a special case; perhaps the question really spans both sites in terms of content and intended audience. Should multiple-postings in this case be allowed? If so, should they somehow be linked to each other? If not, how do we avoid a migration war? optimality of the Carnot cycle I am typing to get a sale amount (by input) to be multiplied by a defined sales tax (0.08) and then have it print the total amount (sales tax times sale amount).  I run into this error. Anyone know what could be wrong or have any suggestions?   salesAmount = raw_input (["Insert sale amount here \n"]) ['Insert sale amount here \n']20.99 &gt;&gt;&gt; salesTax = 0.08 &gt;&gt;&gt; totalAmount = salesAmount * salesTax  Traceback (most recent call last):   File "&lt;pyshell#57&gt;", line 1, in &lt;module&gt;     totalAmount = salesAmount * salesTax TypeError: can't multiply sequence by non-int of type 'float' I am on a Mac with MacTex 2020 and ran into a strange problem with Biber. Working on a document all was fine, I did not change the bibliography (says my git) and only fixing typos (not even adding cites) and suddenly latexmk stopped working after a Biber run, while that looked like  INFO - This is Biber 2.14 INFO - Logfile is 'doc.blg' INFO - Reading 'doc.bcf' INFO - Found 31 citekeys in bib section 0 INFO - Processing section 0 INFO - Globbing data source 'literature.bib' INFO - Globbed data source 'literature.bib' to literature.bib INFO - Looking for bibtex format file 'literature.bib' for section 0 INFO - LaTeX decoding ... INFO - Found BibTeX data source 'literature.bib'   so harmless in my view. Then with --debug I additionally get in the end.  INFO - LaTeX decoding ... warning: overriding existing definition of macro "jun" warning: overriding existing definition of macro "jul" warning: overriding existing definition of macro "sep" warning: overriding existing definition of macro "jan" [...] warning: overriding existing definition of macro "nov" INFO - Found BibTeX data source 'literature.bib' Unicode::UCD: failed to find unicore/version in /var/folders/hm/gt63cn0j2r7bwbzw7c1hww1r0000gn/T/par-626572676d616e6e/cache-2f8a664c3c933a44d096bcc8d018a5e92bced897/inc/lib /var/folders/hm/gt63cn0j2r7bwbzw7c1hww1r0000gn/T/par-626572676d616e6e/cache-2f8a664c3c933a44d096bcc8d018a5e92bced897/inc CODE(0x7fd026aeb5a8) CODE(0x7fd026aebb90) at /var/folders/hm/gt63cn0j2r7bwbzw7c1hww1r0000gn/T/par-626572676d616e6e/cache-2f8a664c3c933a44d096bcc8d018a5e92bced897/inc/lib/Biber/Input/file/bibtex.pm line 1011.   It seems unrelated to the library itself since deleting a few entries (going through deleting one half, then the other), the problem persists. It does not happen for an empty literature, but as soon as a first entry is added (just author/journal/title/year/volume/pages - no utf8-only chars) this error message appears.  what does this last error message mean?  How can I solve this? "compare with" or "compare to" Please check both sentences and let me know, which one is correct and why?   She compares me with her boyfriend.  She compares me to her boyfriend. Is there such a thing as charge density in quantum mechanics? Is there such a thing as a time-varying charge density in quantum mechanics? I am looking at the tungsten filament in a light bulb. Am I allowed to say that there is a wave function which describes that filament, and that in some sense there is a time-varying charge density (which some people call a probability) associated with the square of that wave function? There are electrons which have a probability distribution, and there are nuclei which are vibrating within the lattice, but all in all is there, or is there not, a time-varying charge distribution associated with that glowing filament? And if not, why not?  EDIT: There seems to be some question as to just what kind of charge-density fluctuations I am talking about. Let me clarify: in a hydrogen atom in the ground state, I would say there are NO charge density fluctuations. But if there is a superposition of the ground state and a 2p state, I would say the charge distribution fluctuates sinusoidally at the difference frequency of the two states. THAT is the kind of charge density fluctuation I am asking about for in the tungsten filament. Does it or doesnt' it?  I hope this clarifies the intent of my question.   RE-EDIT: In a separate (and rather hard-fought) discussion, it appears that people who know more than me agree that there is indeed an oscillating charge distribution in the hydrogen superposition as described above (see  ).  So if there is an oscillating charge in the hydrogen atom, why wouldn't there be oscillating charge in a heated tungsten filament? Last upgrade crashes network manager (no internet connection, no applet) While upgrading today, something caused my wireless network manager to disappear. Not even connecting via wired connection.  This error is being shown by files:  **(nm-applet:2716): WARNING **: Could not initialize NMClient /org/freedesktop/NetworkManager: The name org.freedesktop.NetworkManager was not provided by any .service files   (nm-applet:2716): nm-applet-WARNING **: Error connecting to ModemManager: Error calling StartServiceByName for org.freedesktop.ModemManager1: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Cannot launch daemon, file not found or permissions invalid   (nm-applet:2716): nm-applet-WARNING **: Could not find ShellVersion property on org.gnome.Shell after 5 tries   (nm-applet:2716): nm-applet-WARNING **: Failed to register as an agent: (2) The name org.freedesktop.NetworkManager was not provided by any .service files    Is there a patch I can download through windows and send through to my ubuntu, or is it a case of having to reload everything? I tried running two versions back but still no internet access.