Null Pointer Exception in Flashlight App
What is a NullPointerException, and how do I fix it?
is it possible to create this kind of material with the standard textures? The Voronoi texture (set to cells) is coming close but I don’t know if it is possible to a) set the single cells apart from each other and b) to give them seperate colors. highest power of prime $p$ dividing $\binom{m+n}{n}$ C# and USB HID Devices Unfortunately, I need to do this.  I'm using ELMAH for my error log.  Before I route to my error.aspx view, I have to grab the default ELMAH error log so I can log the exception.  You used to be able to use   Elmah.ErrorLog.Default   However, this is now marked as obsolete.  The compiler directs me to use the method  Elmah.ErrorLog.GetDefault(HttpContext context)   MVC's context is of type HttpContextBase, which enables us to mock it (YAY!).  How can we deal with MVC-unaware libraries that require the old style HttpContext? Does the mass of a battery change when charged/discharged? If so, how much? Is it possible to detect it, or is it beyond any measurement?  I'd say there are two possible scenarios (depending on the battery type) and both seem interesting:   The battery reacts chemically with its environment. The battery doesn't exchange any matter with its environment except electrons. I suppose there should be some difference at least due to the principle of energy-matter equivalence, but the difference is most likely immeasurable. Ubuntu 18.04 opening system setting logs me out I've recently installed Ubuntu 18.04 in a dual-boot configuration with Windows 10. I noticed today that, when trying to open system settings, Ubuntu seems to log me out to the lock screen. When I log back in, all previously-running applications are now closed. Very unsure what to do from here, any help much appreciated. How to check the tasks that are running at different run levels in debian? Evaluation of $\displaystyle \int_{0}^{1}\frac{x\ln (x)}{\sqrt{1-x^2}}dx$   $\bf{My\; Try::}$ Let $\displaystyle I = \int_{0}^{1}\frac{x\ln x}{\sqrt{1-x^2}}dx\;,$ Put $x=\cos \phi\;,$ Then $dx = -\sin \phi d\phi$  and Changing Limit, We get  $$\displaystyle I = -\int_{\frac{\pi}{2}}^{0}\cos \phi \cdot \ln(\cos \phi )d\phi = \int_{0}^{\frac{\pi}{2}} \ln(\cos \phi)\cdot \cos \phi d\phi$$  Now Using Integration by parts, We get  $$\displaystyle I = \left[\ln(\cos \phi)\cdot \sin \phi\right]_{0}^{\frac{\pi}{2}}+\int_{0}^{\frac{\pi}{2}}\frac{\sin^2 \phi}{\cos \phi}d\phi$$  So $$\displaystyle I = \left[\ln(\cos \phi)\cdot \sin \phi\right]_{0}^{\frac{\pi}{2}}+\int_{0}^{\frac{\pi}{2}}\frac{(1-\cos^2 \phi)}{\cos \phi}d\phi$$  So $$\displaystyle I = \left[\ln(\cos \phi)\cdot \sin \phi\right]_{0}^{\frac{\pi}{2}}+\int_{0}^{\frac{\pi}{2}}\sec \phi d\phi-\int_{0}^{\frac{\pi}{2}}\cos \phi d\phi$$  So $$\displaystyle I = \left[\ln(\cos \phi)\cdot \sin \phi\right]_{0}^{\frac{\pi}{2}}+\left[\ln\left|\sec \phi+\tan \phi\right|\right]_{0}^{\frac{\pi}{2}}-\left[\sin \phi\right]_{0}^{\frac{\pi}{2}}$$  So $$\displaystyle I = \left[\ln(\cos \phi)\cdot \sin \phi\right]_{0}^{\frac{\pi}{2}}+\left[\ln\left|\sec \phi+\tan \phi\right|\right]_{0}^{\frac{\pi}{2}}-1$$  Now How can I solve after that, Help Required, Thanks Seeking shapefile of city boundaries in US? Why is travelling around the speed of light a problem? I don't fully understand what would happen if we could travel at the speed of light. But I saw somewhere here that it would mean events happen out of order. But why is this a problem. It is said that cause has to happen before the effect, but why does this have to be linear?   And why is it that the speed of light is the maximum? I take it that light (photons?) are massless, so why can't they travel faster? I remember that the main character is trying to find the group that destroyed his home planet while he was on a mission. His planet was very difficult to live on and the people became expert in martial arts and were the best soldiers in the galaxy. They were mercenaries and often helped against tyrants. There was a very memorable section in at least one book about an initiation task that the main character had to do in that he had to survive in their wilderness for days. He was at some point surrounded in a old building by thousands of poisonous worm/snake creatures that he managed to survive until rescued by the leaders. I am trying to really understand why the gradient of a function gives the direction of steepest ascent intuitively.  Assuming that the function is differentiable at the point in question, a) I had a look at a few resources online and also looked at this   , a popular question on this stackexchange site. The accepted answer basically says that we multiply the gradient with an arbitrary vector and then say that the product is maximum when the vector points in the same direction as the gradient? This to me really does not answer the question, but it has 31 upvotes so can someone please point out what I am obviously missing?  b) Does the gradient of a function tell us a way to reach the maxima or minima? if yes, then how and which one - maxima or minima or both? Edit: I read the gradient descent algorithm and that answers this part of my question.  c) Since gradient is a feature of the function at some particular point - am I right in assuming that it can only point to the local maxima or minima? Determining the structure of the quotient ring $\mathbb{Z}[x]/(x^2+3,p)$ How do I get attention for one of my own questions without a good answer? Updated Ubuntu 16.04, now I'm running Kali? Updated Ubuntu 16.04 today using the software updater. Now my PC is running Kali? There were something like 2Gb of updates, which I thought at first was because I haven't updated in a while. Now I'm thinking that it was downloading Kali. Here's a  of the new boot-up process.  The screen will continue to flicker for another 30 seconds or so, then stop flickering leaving the text on the screen. I tried switching the display manager from gdm to lightdm, which will boot me straight to the console and without flickering, but still no desktop.  I'm not altogether sure how I managed to accomplish this. It must have been when I was trying to get Katoolin running.  Any tips as to how I can either get the desktop or revert the updates?  Contents of cat /etc/lsb-rolling:  DISTRIB_ID=Kali DISTRIB_RELEASE=kali-rolling DISTRIB_CODENAME=kali-rolling DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling" How can Obito use his Mangekyo so often? So I have an old unlocked phone and I'd like to load up my own OS.  I've seen some mods out there.  CyanogenMod seems to be the most popular.  However, I was curious if I could just install a pure untouched version of the OS -- as distributed by Google. I seem to remember being able to download a clean compiled version of the Android OS.    Does Google distribute any binaries like this, and if not, is there someone out there that does?    Additionally, is this even worth trying?  These days is it necessary for Android to be packaged with special drivers and such for all of the different hardware out there? Inner Product on $\mathbb{R}$ and on $\mathbb{C}$ This is a question of the book Linear Algebra of Kenneth Hoffman.  Describe explicitly all inner products on $\mathbb{R}$ and on $\mathbb{C}$.  I think that if $&lt;,&gt;$ is one inner product on $\mathbb{R}$ (or $\mathbb{C}$) then $&lt; ,&gt;=K[,]$, where $[,]$ is the standard inner product. Is that correct? Rank correlation statistics comparison I am trying to understand the relative behavior of the following rank correlation statistics:   Spearman coefficient Kendall Tau / Concordance percentage Normalized Gini coefficient (area under curve of percentage captured versus percentage observations) Normalized Area under ROC curve (for binary classifiers)   I don't believe any of these are functionally related to the others.  The accepted answer  references  and Spearman and Kendall are highly correlated (as one would expect).  Are there good intuitions behind/discussions of relative (across datasets) or absolute (for a given dataset) differences for (any pair of) these measures? How to mix a jpeg background image with a 3D scene generated using Filmic Blender? I want to compose 3D-model over image, and I use filmic to get more suitable result. But I want the background image to remain in the original colors. So I try to use this setting:    but it haven't setting "look" ("high contrast", "low contrast", ets..) here, so color changes..  How to solve this?  Of course, I can save my render and compose it with jpg-image in different place - no problem here, but my question is about how to make it in place. It will give ability to control colors in filmic color space and see the results immediately.   UPD: image is from image node:    UPD2:     you can't really convert a display referred image to the scene   referred domain; the information has been permanently lost   Ok, but how to make the colors at the output looks close to the original?  UPD3:  This filmic version is from daily build.