Changing text colour of a text view using a spinner
What is a NullPointerException, and how do I fix it?
"All the good people" vs. "all of the good people" How can I merge properties of two JavaScript objects dynamically? I need to be able to merge two (very simple) JavaScript objects at runtime.  For example I'd like to:  var obj1 = { food: 'pizza', car: 'ford' } var obj2 = { animal: 'dog' }  obj1.merge(obj2);  //obj1 now has three properties: food, car, and animal   Does anyone have a script for this or know of a built in way to do this?  I do not need recursion, and I do not need to merge functions, just methods on flat objects. My hypothesis is that $\mathbb{R \times R}$,  the set of all pairs $(r_1, r_2)$, of real numbers is uncountable. I understand that the set of all pairs of natural numbers is countable. But could someone explain why the set of all pairs of real numbers uncountable? I am having trouble proving it using diagolization How to make a process invisible to other users? How could you launch a process and make it invisible to the top command? The process is started by a normal user (not root), and should not be visible to other normal users. How do I add newlines between lines printed on the command line? Mail logs are incredibly difficult to read. How could I output a blank line between each line printed on the command line? For example, say I'm grep-ing the log. That way, multiple wrapped lines aren't being confused. I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back? I would like to say something like     The boy, Adam's, favorite toy was a bike.   What is the proper way to say this? Python Split String Lets Say we have Zaptoit:685158:zaptoit@hotmail.com   How do you split so it only be left 685158:zaptoit@hotmail.com Is  free for business platforms?  Has Ubuntu changed its conditions about using the OS for profit purposes? Examples of infinite groups such that all their respective elements are of finite order. I am in need of examples of infinite groups such that all their respective elements are of finite order. Do I need a flight ticket or a flight reservation for my UK visit visa application Am compiling documents for my visa application and I read that I need to present go and return flight tickets to prove that I will return at the end of my visit. Then a while ago I got to know that I can just get a flight reservation with out buying the flight tickets because the visa application can be refused and you have already bought the tickets.  So l request to know which of the two , having a flight ticket or flight reservation is more compelling to the visa officer and more convenient me because I would buy a flight ticket and my application is refused House address is not listed on Google Maps When I search for my address on Google Maps it cannot be found which means I can't order takeaway etc.  Is there a way of adding my address to Google Maps or even add a street address?  I want the address to be publicly available so others can search it. Are there published predictions that hydrogen could remain metallic at ambient pressure? Below the question  there is a  that directed me to the BBC News summary . In their attempt to balance the skepticism of this particular reported observation with the potential implications of producing metallic hydrogen in a laboratory, the BBC included some far-reaching possibilities:  If that is true - and it is a controversial claim - it fulfills a more than 80-year quest to produce what many have said would be a wonder material. Theory suggests metallic hydrogen could be used to make zero-resistance electrical wiring and super-powerful rocket fuel, among many applications.  At the end of the article:  &quot;The scepticism here is probably a good thing, in that it will drive many groups towards attempting to reproduce this experiment. This publication will certainly incite the field. Again, if it holds up, this is an exciting result. I think in this case time will tell,&quot; he told BBC News.  ...referring to Marcus Knudson from Sandia National Laboratories.  And Jeffrey McMahon from Washington State University concurred: &quot;With respect to the tiny sample amount: Such experiments are performed in small diamond anvil cells. One challenge would be to make a larger quantity (at once); another, perhaps bigger challenge is to recover even the small sample (ie, remove it from the extreme pressures that it is under in the diamond anvil cell). &quot;Whether the latter is possible is an important open question.&quot;  Question: Are there published, peer-reviewed predictions that hydrogen could remain metallic at ambient pressure? A link or reference would be appreciated. If it's still in pre-print form (AeXiv) that's OK too. If it's possible, a little help understanding the prediction would be great as well: I know there are many predicted crystalline forms of water ice at elevated pressures and/or reduced temperatures, and many or most of these have been observed, but I think most of them revert once pressure is reduced to ambient. Also the  comes to mind. If there is such a prediction of the possibility of hydrogen remaining metallic at ambient, is there an analogous example of this with a material I'm more familliar with, or is this something quite new? Preventing brute force attacks against ssh? What tool or technique do you use to prevent brute force attacks against your ssh port. I noticed in my Security logs, that I have millions of attempts to login as various users through ssh.  This is on a FreeBSD box, but I imagine it would be applicable anywhere. Did anyone in the Star Wars universe wear effective armour? The Storm Troopers are the main case here, they get killed easily by blasters and even the Ewok arrows go straight through their 'armour'.   The AT-ST and AT-AT use armour to repel blasters of different strengths so they don't pass through all materials. I understand though that the armour used on these is likely much heavier.   From the prequel trilogy we also have the , which have a shield when not moving. Does anyone other than these droids use this technology?   You may use any of the Scrapped EU, Current EU and the normal U to answer. Calculating the average of variably sized blocks of numbers within a column? Feed lists answered questions as "unanswered" I understand that they force you to implement methods and such but what I cant understand is why you would want to use them. Can anybody give me a good example or explanation on why I would want to implement this. How to export/backup Notes in macOS in one go I have a lot of Notes on my machine which I don't want to loose. It's not logical to export them one by one. Is there any way to export them in one go, which would make me either use them on my new   I learned that I could backup ~/Library/Group Containers/group.com.apple.notes but I am not really sure if this would be helpful. This is what I get as for this directory.  $ du -sh ./* 4.0K    ./Library 256K    ./NoteStore.sqlite  32K    ./NoteStore.sqlite-shm 3.0M    ./NoteStore.sqlite-wal   I am running macOS Mojave. Find $\lim\limits_{n \to \infty} \frac{\sqrt 1 + \sqrt 2 + \dots + \sqrt{n}}{n\sqrt{n}}$. $$\lim_{n \to \infty} \dfrac{\sqrt 1 + \sqrt 2 + \dots + \sqrt{n}}{n\sqrt{n}}$$   $$\lim_{n \to \infty} \dfrac{\sqrt 1 + \sqrt 2 + \dots + \sqrt{n}}{n\sqrt{n}} =\lim_{n\to \infty} \dfrac1{n}\sum^{n}_{k = 1} \sqrt{\dfrac k n} $$  While searching this question I found, .   Like in the accepted answer I first compared my series to LRAM,    $$\int_a^b f(x)\,dx=\lim_{n\to\infty}\frac 1n\sum_{i=1}^n f\left(a+\frac{b-a}n i \right)$$  I got $a = 0$, $b = 1$ and $f(x) =\sqrt{x}$ so,  $$\int_0^1 \sqrt{x}\ dx = \dfrac2 3$$ should be the answer.  Is there any simpler method to do this sum ? I have not learnt this method to do infinite sums so I can't use it.