NullPointerException with android.widget.TextView.setTextColor
What is a NullPointerException, and how do I fix it?
I have 2 graphics cards (Tesla k10, K40) in my supermicro SuperServer (7047GR-TPRF). I installed Ubuntu Server 14.04, but when I install cuda or Nvidia graphics driver (version 311 or 340), my Ubuntu desktop hangs on login. When is the completion of a ring a local ring ? Let $R$ be a commutative ring with unit and let $m$ be a maximal ideal of $R$. Are there known conditions on $R$ or $m$ such that the $m$-adic completion $\hat{R}$ of $R$ is a local ring.   Since the completion of a Noetherian local ring is again local, I'm primarily interested in cases where $R$ itself is not local.   An example is the polynomial ring $R=k[X_1,...,X_n]$ ($k$ a field) with $m=(X_1,...,X_n)$ where the power series ring $\hat{R}=k[[X_1,...,X_n]]$ is local with maximal ideal $(X_1,...,X_n)$. There are two syntaxes for command substitution: with dollar-parentheses and with backticks. Running top -p $(pidof init) and top -p `pidof init` gives the same output. Are these two ways of doing the same thing, or are there differences? Correct usage of "see" vs. "watch" $$\int_0^{2\pi} \frac{1}{2+\sin(x)} \ dx$$  $$\sin(x)=\frac{e^{ix}-e^{-ix}}{2i}$$  $$z=\alpha(x)=e^{ix}$$   $$\sin(x)=\frac{z^2-1}{2zi}$$ $$2+\sin(x)=\frac{4zi+z^2-1}{2zi}$$ $$\frac{1}{2+\sin(x)}=\frac{2zi}{4zi+z^2-1}$$    $$\int_\alpha \frac{2zi}{4zi+z^2-1} \ \ \frac{1}{zi}$$    $$4zi+z^2-1=0$$ $$z_1=\frac{-4i+2\sqrt{3}i}{2}$$ $$z_2=\frac{-4i-2\sqrt{3}i}{2}$$    $$\rvert z_1 \rvert &lt;1$$ $$\rvert z_2 \rvert &gt;1$$   Using Residue theorem:   $$\int_\alpha \frac{2}{4zi+z^2-1}=2 \pi i \ \lim_{z\rightarrow-2i+\sqrt{3}i} \ \frac{2}{z+2i+\sqrt{3}i}=\frac{2 \pi}{\sqrt{3}}$$    Is it correct?  Thanks! How many regenerations does the Doctor have after The Time of the Doctor? In The Time of the Doctor, the Doctor says that he has a "new regeneration cycle". Does this mean he has another set of 12 regenerations, or just the one? How can I narrow down these gaps? I am writing my curriculum vitae, but I have one question.  In the first image, there are spaces between different sections.  (Between contact and phone, between education and Seoul~~,....)  Thus, I want to narrow down these gaps.  How can I solve this problem??  \documentclass[margin,line,letterpaper,11pt]{res}  \usepackage{times}  \usepackage{enumitem}   \setlength{\topmargin}{0.1in} \setlength{\textheight}{11in}  \setlength{\textwidth}{6in} \setlength{\oddsidemargin}{-.55in}  \setlength{\evensidemargin}{-.55in}  \oddsidemargin -.25in \evensidemargin -.49in \textwidth=5.4in  \newcommand{\ts}{\textsuperscript}  \newcommand{\block}[1]{     \vspace{.1in} \section{\sc #1} }  \newcommand{\subblock}[1]{     \vspace{-.2in}\subsection*{#1} }  \newenvironment{enum}{     \begin{enumerate}[leftmargin=5mm]     \setlength{\itemsep}{1mm} }{     \end{enumerate} }   \begin{document}   \name{\sc \LARGE  }   \begin{resume}  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \block{Contact} Phone:  \\ Email:  \\\vspace*{-6mm} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \block{Education}  University : \\  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \block{Other\\ Activities}  Club : \\   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  \end{resume} \end{document} How do I tell a Python script to use a particular version Bathroom vanity light with no junction box I've got a PHP script that needs to invoke a shell script but doesn't care at all about the output. The shell script makes a number of SOAP calls and is slow to complete, so I don't want to slow down the PHP request while it waits for a reply. In fact, the PHP request should be able to exit without terminating the shell process.  I've looked into the various exec(), shell_exec(), pcntl_fork(), etc. functions, but none of them seem to offer exactly what I want. (Or, if they do, it's not clear to me how.) Any suggestions? The old "too localized" closing reason included "questions that are unlikely to help future visitors".   , that if a question resulted from a typo in the OP code those questions should be closed with "too localized" reason.  The current off-topic reason does not cover that.  Should these questions remain open now, as they do not really fall into any current closure category?  UPDATE  I marked  for diamond moderator attention to be deleted as Robert Harvey hinted below, only to get the flag declined as "declined - flags should only be used to make moderators aware of content that requires their intervention".  Can you confidently tell me that this is a useful question that helps the goal of SE? Added activities, now names and labels and strings aren't registering Android Manifest file Preface:  An axis plotted with  is usually using the current math font for its ticklabels. But if they are overwritten by e.g. xticklabels={-8,-6,...,8} then the current text font is used. Also an axis label ylabel={Y} would be in text font unless put explicitly in math mode ylabel={$Y$}. However it would be nice, if  one hadn't to do so.   Question:  I'm aiming to ensure that pgfplots always uses the current math font. But please assume that the classic font commands like \rmfamily are screwed up by the corporate design I'm supposed to use, e.g. assume: \renewcommand{\rmdefault}{\sfdefault}  It works if I explicitly define a font  \newcommand{\pgfmathfont}{\fontfamily{pxfonts}\selectfont}   and pass it to pgfplots together with assume math mode=true:  \begin{axis}[ font = \pgfmathfont,  tick label style={/pgf/number format/assume math mode=true} ]   But it requires that I insert the name of the current math font. How can I do that automatically? How to get the currently used math font to insert it into the macro?    MWE  \documentclass{beamer}  \usetheme{Warsaw} \usefonttheme{professionalfonts} \usepackage{pxfonts} \usepackage{pgfplots}  % screwed up by Corporate Design \renewcommand{\rmdefault}{\sfdefault}  % I'd like this line to be generic! \newcommand{\pgfmathfont}{\fontfamily{pxfonts}\selectfont} %           put current math font here   X  \begin{document}  \begin{frame}  This is a basic equation:    \[ x + y = 42\]  \begin{tikzpicture}     \begin{axis}[ %   font = \rmfamily, % makes no sense here     font = \pgfmathfont,      xlabel={$x$-label: I want to be in math font!},     ylabel={Y},     xtick={-4,-3,...,4},     xticklabels={-8,-6,...,8}, %   xticklabels={$-8$,$-6$,...,$8$}, % does not work     tick label style={/pgf/number format/assume math mode=true}     ]      \addplot {x^2};      \end{axis} \end{tikzpicture}  \end{frame}  \end{document}     Everything related to  is no option at all!  Thank you! Check tag classes with watir? Evaluating and negotiating a start-up package I've been offered an academic position, and am now in the fortunate, but unfamiliar position of negotiating the offer.  I've seen a few blogs/comments/posts on this process.  However, I have no real idea how to evaluate the offer that's been made.  Coming from the position of a postdoc, the package seems impressive (given that, as a postdoc, my "package" consists of a very modest salary and health benefits).  However, I also realize the importance of maximizing (within reason) my initial offer, as this sets the baseline for, at least, the first few years of my faculty career and could provide support that would prove very important in the initial year or so while I'm trying to obtain grant funding.  In particular, I'm looking for two types of information.  First, what types of startup packages are standard for tenure-track assistant professors of Computer Science at a public RU/VH (i.e. Research) university?  This is just to give me some point of comparison.  Second, what types of changes are reasonable to negotiate?  Can I ask for more summer salary support while still conveying to them my desire to obtain grant funding as quickly as possible?  The offer already includes a reduced teaching load for the first few years --- is it also reasonable to ask for an extra semester off prior to a tenure review?  I understand these are fairly broad questions, but any input or suggestions would be very helpful.  I'm definitely interested in the job; I really liked the department and think it's a great opportunity.  I don't want to alienate anyone by pushing too hard, but at the same time, I want to make sure that I make every reasonable effort to maximize my chances for academic success, which includes maximizing my available resources by negotiating the best startup package I can. How to nest code within a list using Markdown Should moderators be allowed to decline flags on their own comments? After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Photoelectric effect intensity I understand the PE effect quite well but I'm failing to understand one thing. Intensity is the amount of energy per second incident to a given area.   So can you can increase the intensity by either increasing the electrical energy or making the area smaller? By increasing the electrical energy, what exactly is happening?  I assume that by increasing intensity you are increasing the number of photons incident to an area of the metal thus increasing the rate of photoelectric emission. But why doesn't increasing intensity via more electrical power lead to greater energy of the electrons, if by increasing intensity you are increasing the energy of the incident waves?  I understand the results but I'm trying to understand why the intensity works the way it is thanks Is the sub-field of algebraic elements of a field extension of $K$ containing roots of polynomials over $K$ algebraically closed?