java java.util.ConcurrentModificationException on ArrayList
Iterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loop
How is Starkiller Base's beam visible from Takodana in The Force Awakens? On Takodana,      the main characters and various bar patrons can see the planet Hosnian Prime being destroyed by Starkiller Base with their (respective) naked eyes. How did they see this? Is the Hosnian system close enough to see? If it's not very close and they could just see the explosion, how did the light from it reach them so quickly? "FTL" Communication with Quantum Entanglement? Can quantum entanglement make sending a message, whether audio, video, or even Morse code, instantaneous between two points (faster than it could travel normally at the speed of light)?  Let me first be clear, my question is not whether a message can travel faster than light. I simply mean whether a message can be generated here and then a copy of that message heard over there sooner than the message would normally be received.  Say a large number of entangled pairs are generated. One half the particles are given to Jack and the opposite ones to Sally. Jack then hops on a ship and travels 8 months to Mars. Sally then manipulates her particles in the form of a message. Do the corresponding opposite particles get manipulated simultaneously so that Jack receives the message instantly instead of the 16 light-minutes for a classically transmitted message? I'm using biblatex and I have it set up like this:  In my bib file I have 3 sorts of entrys, online, booklet, and book.   And in my thesis I want them printed separate like this:  \printbibliography[heading=subbibliography,title={Books},type=book, nottype=url, nottype=booklet, nottype=online] \printbibliography[heading=subbibliography,title={Websites},type=online, nottype=book, nottype=booklet, nottype=url] \printbibliography[heading=subbibliography,title={Misc},type=booklet]   For some reason this won't work, it still puts the websites where the books should be. And vice versa. The booklet thing does work though, it only shows my booklet entries there.  I recently started using biblatex so this might be a stupid question. What is $dx$ in integration? When I was at school and learning integration in maths class at A Level my teacher wrote things like this on the board.  $$\int f(x)\, dx$$  When he came to explain the meaning of the $dx$, he told us "think of it as a full stop".  For whatever reason I did not raise my hand and question him about it.  But I have always shaken my head at such a poor explanation for putting a $dx$ at the end of integration equations such as these.  To this day I do not know the purpose of the $dx$.  Can someone explain this to me without resorting to grammatical metaphors? Related:   I am using 1.0.71 on KitKat.  Immediately after voting, the arrow is displayed in red and the vote count is correct. However, when I scroll to read answers and then back to the top, the arrow is grey again and the vote count is reset to the previous value.  A reload of the question (pulling the finger down) is needed to show the correct situation, which is kept from then on.  This case was on security.stackexchange.com but I observed the same behavior on other sites too.  Screenshots   original state:  upvoted:  scrolled down and back up  after a reload Using the Fitch system, how do I prove $((p \implies q) \implies p)\implies p$? I have been trying to show these two inequalities hold for all positive integers n, but I don't know how to proceed at all... I have tried playing around with them but I didn't find anything helpful. I have also tried induction but I couldn't make it work. Summation by parts (finite calculus) of $\sum\limits_{i=0}^{n}i\cdot a^i$ I'm studying the calculus of finite differences and have read about summation by parts:  $\sum f(x)\Delta g(x) = f(x)g(x) - \sum g(x+h)\Delta f(x)$.  The tutorials I'm using go a bit woolly at the point of introducing this technique: they use examples where they set $\Delta g(x)$ to $2^x$, and don't really show how to use it for anything a bit harder. I'm at a loss for basic examples.  I wondered if it is possible to determine  $S.n = \sum\limits_{i=0}^{n}i\cdot a^i$  using summation by parts?  If so, how is it done?  Thanks in advance. I have long been confused about this notion. I know that for a statement within a single category, forming the dual statement is just reversing every arrows. But what about a statement concerning several categories and functors between them?   Mac Lane suggests reversing all arrows in all categories and leaving the functors invariant in his book "Categories for the working mathematician" (page 32), but it seems that Mac Lane himself doesn't always follow this discipline (when he states "the dual of Yoneda Theorem", he doesn't reverse the arrows in $\mathbf{Set}$ !) Can anyone give me a formal definition of "dualize a statement in category theory"? Scale camera to fit screen size unity My background and gameobjects are 2d sprites not UI images ,I want to know how to make my background scale with screen size and positions of 2d sprits on it don't change after building game (webGl) like scale canvas with screen size and anchor points in UI elements .  Before building the game   After building Using residue theorem to integrate from $-\infty$ to $\infty$ I'm trying to integrate $$\int_{-\infty}^{\infty} {x^2 \over {(x^2 + 1)}^2(x^2 + 2x + 2)} $$ given that the function  $$f(z) = {z^2 \over {(z^2 + 1)}^2(z^2+2z+2)} $$ has residues $${9i - 12 \over 100},{3 - 4i \over 25}$$ at the poles $i$ and $-1+i$ respectively. From my understanding of this I have added the two residues (by the residue theorem, and because their respective poles lie in the upper half plane) and multiplied by $2\pi i$ and got an answer of $14\pi \over 100$  Have I done this right? How to alter touchpad settings on Ubuntu GNOME 16.04? After upgrading to Ubuntu GNOME 16.04 with GNOME 3.20 I have found that if I tap my touchpad it clicks which is something I do not want due to a faulty touchpad, previously I was able to disable this through the gnome-control-center, but seemingly there is no way to do this any more through there, so how do I do it? Also, even though it is set to false in gsettings and the dconf-editor seemingly for some reason somewhere in the system it is also set to true as it is behaving as such. I am also unable to set natural scrolling or any of the other touchpad settings seemingly, why not? I was trying to install Linux on my MacBook for class when I bricked my computer, which now in an unbootable state.   I made my partition too small, so I was going to delete and create a larger one. However, Disk Utility did not allow me to delete the small partition. I followed the instructions from   However, not only was I still unable to delete it, but upon restarting I realized my primary partition (located on the same disk) changed into FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF, and I had no options to boot.  (I am sure I performed the command on the correct disk and partition)  I saw some similar threads, but my main bootable drive is the one that got corrupt.   I don't want to lose any data. I'm not the most terminal savvy, so ANY help is appreciated, and I will kindly provide any additional information!  (Disk 0, partition 2 is my main partition, and that only one I care about)  Below are the results of  $ diskutil list and $ gpt -r show disk0.        UPDATE: :  I have followed @klanomath 's instructions. At the last step I received the following error:  Checking prerequisites Checking the partition list Checking for an EFI system partition Checking the EFI system partition's size Checking the EFI system partition's file system Problems were found with the partition map which might prevent booting Error: -69766: The partition map needs to be repaired because there's a problem with the EFI system partition's file system Underlying error: 8: POSIX reports: Exec format error    FINAL UPDATE: SUCCESS!  I just wanted thank @klanomath for helping me through this entire process. He spent 11 hours TeamViewing with me until not only my files were accessible, but until I could access my computer as could before this whole debacle (and this was after 5 hours of email correspondence).   To any future reader with this problem: PLEASE don't give up, it can be fixed! I'm using this code to get standard output from an external program:  &gt;&gt;&gt; from subprocess import * &gt;&gt;&gt; command_stdout = Popen(['ls', '-l'], stdout=PIPE).communicate()[0]   The communicate() method returns an array of bytes:  &gt;&gt;&gt; command_stdout b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   However, I'd like to work with the output as a normal Python string. So that I could print it like this:  &gt;&gt;&gt; print(command_stdout) -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1 -rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2   I thought that's what the  method is for, but when I tried it, I got the same byte array again:  &gt;&gt;&gt; binascii.b2a_qp(command_stdout) b'total 0\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file1\n-rw-rw-r-- 1 thomas thomas 0 Mar  3 07:03 file2\n'   How do I convert the bytes value back to string? I mean, using the "batteries" instead of doing it manually. And I'd like it to be OK with Python&nbsp;3. "Whom" or "who" where the referent is both subject and object? I understand there has been so much on this topic but I am still confused. I get that if the person is the subject it is who and anything else is whom. However, I'm really struggling to work out this rule for the following sentence:     The scope of which his account of morality applies to is therefore restricted to those whom/who the ‘notion of justification to a being of that kind makes sense.’   Should it be who or whom? I can't work out the subject and object. Is it possible to have several different views of one scene and set them as named "presets"? Bluetooth disappeared in Windows 10 I have a Lenovo G580 laptop. In the past, using Windows 8, I could use Bluetooth to connect to other devices.  Installing Windows&nbsp;10, Bluetooth simply disappeared. I can't find anything related to Bluetooth in the Device Manager, also in Settings → Devices.  There is no Windows&nbsp;10 Bluetooth driver for my laptop.  What can I do? How to multiply a BigDecimal by an integer in Java Joined pipelines Considering a routine such as this one:  alpha() { echo a b c |tr ' ' '\n'; }   which outputs a stream, I would like to take the output stream, transform it, and paste it with the original output stream.  If I take use upcasing as a sample transformation, I can achieve what I want with:  $ mkfifo p1 p2 $ alpha | tee p1 &gt;( tr a-z A-Z &gt; p2) &gt;/dev/null &amp; $ paste p1 p2 a       A b       B c       C   My question is, is there a better way to do this, preferably one not involving named pipes? Prove by induction that for all $n \ge 0$:  $${n \choose 0} + {n \choose 1} + ... + {n \choose n} = 2^n.$$  In the inductive step, use Pascal’s identity, which is:  $${n+1 \choose k} = {n \choose k-1} + {n \choose k}.$$  I can only prove it using the binomial theorem, not induction.