App Crashing by NullPointerException with ContentResolver retrieving SMS
What is a NullPointerException, and how do I fix it?
Find the all possible real solutions of $x^y=y^x$ Find the all possible real solutions of $$x^y=y^x$$ $x,y$ both are real numbers.  My attempt:I observed the following solutions  $x=2,y=4$  $x=4,y=2$  $y=x$  Is there any other possible solutions? Sort ArrayList of custom Objects by property Is any particular punctuation necessary when a quotation is the subject of a sentence? For example, in the sentence below, should there be a comma after export? Or anything else?     "Laughter is America's most important export" is a well-known quote of Walt Disney's. What points in the complex plane satisfy $|z|=arg(z)$. My code runs inside a JAR file, say foo.jar, and I need to know, in the code, in which folder the running foo.jar is.  So, if foo.jar is in C:\FOO\, I want to get that path no matter what my current working directory is. What's wrong with this demonstration?:  $$A \iff 1 = 1^1$$ $$A \implies 1 = 1^\frac{2}{2}$$ $$A \implies 1 = (1^2)^\frac{1}{2}$$ $$A \implies 1 = ((-1)^2)^\frac{1}{2}$$ $$A \implies 1 = (-1)^\frac{2}{2}$$ $$A \implies 1 = (-1)^1 = -1$$  So finaly we get  $$1 = -1$$ I have two separate Armatures that I want to join together. I have no problem combining the meshes, but the problem is the bones/rigs. When you do the Object mode > join, I lose all of my weight paint on one of my armatures. Is there any way I can join two separate armatures and keep all the weight paint. I turn my models into XPS and use XNA Lara to view them, but XNAlara cannot use both armatures at once. I use VirtualBox on my MBP and often need to mount my USB flash drive inside the guest.  The problem I'm running into is that the host OS (OS X Mavericks) immediately mounts the USB flash drive when I insert it.  When I try to unmount it (gracefully, through Finder), OS X complains that the device is in use.  Further research into lsof reveals that Spotlight and AVG are doing their thing with the flash drive.  Rather than fiddling with individual app settings, I'd like to just modify the host OS behavior so that the USB device doesn't auto-mount.  Any suggestions? How can I install a Nautilus script? I am preparing a book for publication which contains the following passage:     Stromberg in Religious Liberalism in Eighteenth-Century England   (1954) noted that 'the critical moment in the emergence of a positive   spirit of reform...consisted in the awareness of evil as being social   and remediable. It begins about 1750.'   My proof reader (my wife) has picked this out suggesting it should be the past tense. However if I say It began about 1750 it seems to convey too much certainty about the exact date. I just want to convey an impression of it being something which emerges in the mid-eighteenth century. I believe use of the present tense is the way to go.   But what is this artifice called, this use of the present to convey mild uncertainty? folder content doesn't get refreshed automatically in ubuntu 14.04 I'm using Ubuntu 14.04 and when I'm doing experiments which creates new files inside a particular folder X. But I can't see these new files inside X without refreshing X.  I have increased the count to 1M in  /proc/sys/fs/inotify/max_user_watches   but still the issue is not fixed.   How to fix it?  EDIT As suggested, output of cat /etc/xdg/autostart/user-dirs-update-gtk.desktop  [Desktop Entry] Encoding=UTF-8 Exec=xdg-user-dirs-gtk-update Name=User folders update Comment=Update common folders names to match current locale Terminal=false OnlyShowIn=GNOME;LXDE;Unity; Type=Application StartupNotify=false X-KDE-autostart-after=panel NoDisplay=true X-Ubuntu-Gettext-Domain=xdg-user-dirs-gtk Does a List guarantee that items will be returned in the order they were added? Does a List&lt;T&gt; always guarantee that items will be returned in the order they were added when enumerated?  Updated: Thanks for all the answers folks, puts my mind at ease. I had a quick poke around the List&lt;T&gt; class with .NET Reflector (should've probably done that in the first place) and indeed the underlying store is an array of T (T[]). Where should I put software I compile myself? Can markdown mini replace an en dash with a normal hyphen in URLs? How do I set Windows to boot as the default in the boot loader? How do I set the bootloader so that in my dualboot with Windows 7/Ubuntu 11.04, Windows start up as standard instead of Ubuntu? Story about an intelligent, walled city; people are reproduced by machines, protagonist rebels and tries to leave I am running Ubuntu 14.04 on think-pad T450.  When using an external monitor with higher resolution than the in-built laptop screen, the text of dialog boxes are getting messed up.  Looks like I need to replace the Graphic card driver. Anyone found a solution to this?  Updated to add requested information:  lspci -nnk | grep '\[03' -A2   gives the following:  00:02.0 VGA compatible controller [0300]: Intel Corporation Broadwell-U Integrated Graphics [8086:1616] (rev 09)     Subsystem: Lenovo Device [17aa:5034] Kernel driver in use: i915   Below is a screenshot, see how the letters are messed up on the screen. Hi all im a noob on Ubuntu/Linux World,  So i need some that give a full tutorial to How to install  from apachefriends.org correctly on Ubuntu 11.10 + all beyond Ubuntu for 32 bit and also 64 bit Desktop Version.. and also i need this:   Make a Folder on Your Home Folder and Linked to htdocs from Apache Web Server Make a GUI interface for Xmapp Start Xampp when Ubuntu Boot Up or Start Ubuntu   (Note: i ask it for both X86 and X64 so people in the further can see the tutorials)    New Data:  What i did was i download from  for now and i also what to say that I'm currently running Ubuntu 11.10 X64 bit for Dell Studio 1558 processor intel i3  i will let you know guys which solution was the best, and it is for a Desktop Version of Ubuntu 11.10 (Laptop 15 inch screen ^_^ ) not Server Ubuntu Imagine you're teaching a first course on quantum mechanics in which your students are well-versed in classical mechanics, but have never seen any quantum before.  How would you motivate the subject and convince your students that in fact classical mechanics cannot explain the real world and that quantum mechanics, given your knowledge of classical mechanics, is the most obvious alternative to try?  If you sit down and think about it, the idea that the state of a system, instead of being specified by the finitely many particles' position and momentum, is now described by an element of some abstract (rigged) Hilbert space and that the observables correspond to self-adjoint operators on the space of states is not at all obvious.  Why should this be the case, or at least, why might we expect this to be the case?   Then there is the issue of measurement which is even more difficult to motivate.  In the usual formulation of quantum mechanics, we assume that, given a state $|\psi \rangle$ and an observable $A$, the probability of measuring a value between $a$ and $a+da$ is given by $|\langle a|\psi \rangle |^2da$ (and furthermore, if $a$ is not an eigenvalue of $A$, then the probability of measuring a value in this interval is $0$).  How would you convince your students that this had to be the case?  I have thought about this question of motivation for a couple of years now, and so far, the only answers I've come up with are incomplete, not entirely satisfactory, and seem to be much more non-trivial than I feel they should be.  So, what do you guys think?  Can you motivate the usual formulation of quantum mechanics using only classical mechanics and minimal appeal to experimental results?  Note that, at some point, you will have to make reference to experiment.  After all, this is the reason why we needed to develop quantum mechanics.  In principle, we could just say "The Born Rule is true because its experimentally verified.", but I find this particularly unsatisfying.  I think we can do better.  Thus, I would ask that when you do invoke the results of an experiment, you do so to only justify fundamental truths, by which I mean something that can not itself just be explained in terms of more theory.  You might say that my conjecture is that the Born Rule is not a fundamental truth in this sense, but can instead be explained by more fundamental theory, which itself is justified via experiment.  Edit:  To clarify, I will try to make use of a much simpler example.  In an ideal gas, if you fix the volume, then the temperature is proportional to pressure.  So we may ask "Why?".  You could say "Well, because experiment.", or alternatively you could say "It is a trivial corollary of the ideal gas law.".  If you choose the latter, you can then ask why that is true.  Once again, you can just say "Because experiment." or you could try to prove it using more fundamental physical truths (using the kinetic theory of gases, for example).  The objective, then, is to come up with the most fundamental physical truths, prove everything else we know in terms of those, and then verify the fundamental physical truths via experiment.  And in this particular case, the objective is to do this with quantum mechanics. I want to make an animation in time to a song so when I hit play on the timeline I need to be able to hear the song so I can finely tune the animations to start and end at the right time.  Is it possible to have sound play on an animation while it is playing in the 3d viewport before it has been rendered.