I am getting Error while doing this  this is my code  String[] options = {getActivity().getResources().getString(R.string.capture_video),getActivity().getResources().getString(R.string.Cancel)};   This is in Fragment class
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
Do Stack Overflow and other Stack Exchange sites have an app I can use? I like using Stack Overflow (or any other Stack Exchange sites) and was wondering if there was an app I could install on my phone or other device that would allow me to use the site on-the-go or straight from my desktop.  Some systems to consider:   Windows 8 Android iPhone/iOS   What are some apps that I could install to my computer or phone to enhance my Stack Exchange experience? Infinite algebraic extensions of $\mathbb{Q}$ I need help to solve the following exercise:   If $K$ is an algebraic extension of $\mathbb{Q}$ (finite or infinite), then we let $O_{K}$ denote the ring of algebraic integers in $K.$ If $\frak{P}$ is a prime ideal of $O_{K}$ then $\frak{P}∩\mathbb{Z}$ is a prime ideal of $\mathbb{Z}.$ Moreover, if $\frak{P}$ is non-zero, then so is $\frak{P}∩\mathbb{Z}$ . Thus $\frak{P}∩\mathbb{Z}=$$ p\mathbb{Z}$ for some prime $p.$ Show that $O_{K}/\frak{P}$  is a field, and is an algebraic extension of $\mathbb{F}_{p}$; then show that it is Galois over $\mathbb{F}_{p}$ with abelian Galois group.  Now suppose that $K/F$ is a (finite or infinite) Galois extension. Let $\frak{P},$  $O_{K}$ be as before and put $\frak{p}=\frak{P} \cap $$O_{F}$, a prime ideal of $O_{F}.$  Show that $\mathrm{Gal}(K/F)$ acts transitively on the set of prime ideals of $O_{K}$ above $\frak{p}.$   Thanks in advance SharePoint 2013 Jan 2016 Updates Is anyone here experience problems in SharePoint after installing the latest JAN 2016 on 13th Jan 2016 (Western Australian Time) updates for SharePoint 2013. I am guessing it could be KB3114503 update giving me problems.  I am getting the same problem on other machines after running the same updates too.  The problem I am receiving is, on every list view I get this error message below:  TypeError: Unable to get property 'replace' of undefined or null reference   TypeError: Unable to get property 'replace' of undefined or null referenceSys.ArgumentNullException: Sys.ArgumentNullException: Value cannot be null. Parameter name: element Subcaption defaulting to capital letter labels? I seem to be having a unique problem. There are many questions asking about how to change subcaption to a label with capital letters but for me my program is defaulting to capital letters when I would prefer lowercase.  My preamble  \documentclass[12pt,reqno]{amsart} \setlength\parindent{0pt} %no auto indentation for new paragraphs \usepackage{geometry}  \geometry{a4paper}  \usepackage{natbib}  \usepackage[latin1]{inputenc} \usepackage{amsmath, amsthm, amssymb, calc, dsfont}    \usepackage{enumerate} \usepackage{subcaption, caption, graphicx} %figure packages \usepackage{authblk} %author affiliations \usepackage{setspace, lineno} %double spaced etc. options, line numbering  \usepackage{tikz} \usetikzlibrary{shapes,arrows,chains,automata,positioning}   My figure  \begin{figure}[h!]   \centering   \begin{subfigure}[]{0.48\textwidth}           \includegraphics{Figure1.pdf}           \caption{}           \label{FigPractice}    \end{subfigure}    \begin{subfigure}[]{0.48\textwidth}           \includegraphics{Figure2.pdf}           \caption{}           \label{PracticeAge}   \end{subfigure}   \caption{a caption} \end{figure}   I've also tried \renewcommand{\thesubfigure}{\alph{subfigure}} Word to describe the fear of unknown future R stem and leaf values How to make a stem and leaf plot with the following data in "R":  1717 1719 1645 3739 3024 3664 3830 2991 2430 2730 3469 5086 2119 3021 3292 2844 3426 2067 3215 2767 3124 2573 2840 2449 2584 1505 1390 1645 2497 3466 3228 3192  The only way to get a reasonable amount of stems is to make the stem the first digit in each number and the leaves will all be 3 digit numbers. I am not able to split the data in this way, R represents the stem with 1 digit but round my numbers  so 2584 is shown as 2| 5 (3 decimals to the right) which would be 2500. How do I adjust my stem and leaf numbers? How to use CDF and PDF statistics for analysis This may be too much of a general question but I hope I can find help here. I am starting a RA job in my university and my topic will be related to Internet Traffic Analysis. I am fairly new to the world of analysis but I guess in the world of research this is what I have to do a lot of.  I've been through a few papers and in a lot of them I find they use Probability Density (PDF), CDF, CCDF etc to explain the results they've obtained. For example, PDF of user session duration, CDF of bytes transferred each day etc. I have taken probability and statistics class so I understand what they are but I am still confused to the cases in which such representation would be chosen.  So, if there is anyone out there who does such graphs and analysis (in any other topic in general or this) could you tell me simply in what situation would I use one or the other of these representations Are there rules for falling in water vs. diving vs. just jumping in for various depths of water? What is this Disney scifi movie from the late 80s/early 90s? How do I unlock Rosalina in Mario Kart Wii? How do I unlock Rosalina from Super Mario Galaxy as a playable racer in Mario Kart Wii? Algorithm for offsetting a latitude/longitude by some amount of meters I posted a question and a couple of respondents asked for the source code. I could only post portions of the code.  If attachments were allowed I could have uploaded a .zip file with the whole application.  Will this be a feature in SO? Repeated error  I have been repeatedly encountering the following error when my laptop freezes. It may occur multiple times during the day, and should take several minutes to recover.  Source Windows  Summary Hardware error  Date ‎11/‎1/‎2018 10:11 AM  Status Not reported  Description A problem with your hardware caused Windows to stop working correctly.  Problem signature Problem Event Name: LiveKernelEvent Code:   144 Parameter 1:    3003 Parameter 2:    ffffad8c0b1a75c8 Parameter 3:    40010002 Parameter 4:    0 OS version: 10_0_17134 Service Pack:   0_0 Product:    256_1 OS Version: 10.0.17134.2.0.0.256.48 Locale ID:  1033   More details  Per my best reflection, the hardware error occurs when I am using the laptop on its docking station. Here is what I observe:   While using the laptop as normal, the "freeze" will occur and I can hardly operate the laptop: mouse cursor won't move continuously and Alt+Tab won't be able to switch across two windows. Shortly after (usually several minutes), things will go back to normal. Upon inspecting through the Performance tab in Task Manager, there had been no spike in anything, be it CPU, Memory or Disk. When I open the View reliability history tool, I will find another entry of Windows Hardware Error   Machine specification:   Thinkpad T480, i7-8650U (newly replaced module thanks to the manufacture)   With the same pair of docking stations, an older unit of T480 has had exactly the same problem.  Docking station: . Same issue has occurred on two identical docks with  slightly different monitors and accessories. OS specification: OS build 17134.376. Most recent collection of "reliability report":    Possible solutions   First, I would like to learn what exactly went wrong, hardware-wise: the manufacturer's support team did not bother too much with the precise error messages, and have ordered me to reinstall the Windows OS up to 5 times in total. [This is what they called "debugging".]   Please advise if you can decipher the recurrent "Hardware error".   Secondly, I will try to push the manufacturer to replace the docking stations, and see if the same "freezing problem' persists. Recommended ways to upgrade AlwaysOn AG from 2014 to 2016 What is the recommended process of upgrading Availability Groups with one Sync Replica from SQL 2014 to 2016?  My understanding is that in-place upgrades are not really liked among database professionals. Is there a way to avoid in-place upgrades in Availability Groups? Is there a possibility to join a 2016 server into an existing 2014 availability group and to failover there, then "kill" one of the other instances and upgrade it? (e.g. by removing/re-installing SQL side-by-side on the same host)  Are there any other upgrade scenarios that we should consider?  The ideal solution would be that we always have 2 online replicas, and that we don't need to do any in-place upgrades. Windows 10 changes UEFI boot order every time I have an HP 500-413nl (a desktop) and Windows 10 keeps changing the boot order in UEFI/BIOS every time, so that if I want to boot Ubuntu 16.10 (64-bit) I always have to press F10, thus entering the BIOS setup and changing boot order…  Is there a workaround for my PC? What should I do? I'm a little desperate.  P.S.: I have already disabled "Secure boot" and "Fast/quick boot" in the BIOS and "Fast startup" in Windows options / Control panel. Deleting array elements in JavaScript - delete vs splice How to complain about a user? I  and a user was rude to me in a comment and in an answer. Even though I can't downvote, that answer got -5 and it was automatically deleted. I want to complain about that user. How can I do that? table of contents no word separation Is it possible to have in the toc no word separation but have a word separation in the chaptername:  For example:   Contents  1. max Mustermann   Chapter  Max Muster- mann Will Stack Overflow's engine be (someday, or ever) open sourced? I found Minecraft's marvelous large worlds extremely slow to navigate, even with a quad core and meaty graphics card.  I assume Minecraft's slowness comes from:   Java, as spatial partitioning and memory management are faster in native C++. Weak world partitioning.   I could be wrong on both assumptions. However, this got me thinking about the best way to manage large voxel worlds. As it is a true 3D world, where a block can exist in any part of the world, it is basically a big 3D array [x][y][z], where each block in the world has a type (i.e BlockType.Empty = 0, BlockType.Dirt = 1, etc.)  I assume that to make this sort of world perform well, you would need to:   Use a tree of some variety (//) to split all the cubes out; it seems like an oct/kd would be the better option, as you can just partition on a per cube level not a per triangle level. Use some algorithm to work out which blocks can currently be seen, as blocks closer to the user could obfuscate the blocks behind, making it pointless to render them. Keep the block object themselves lightweight, so it is quick to add and remove them from the trees.   I guess there is no right answer to this, but I would be interested to see peoples' opinions on the subject.  How would you improve performance in a large voxel-based world?