How to check if running on UI thread in Android?
How to check if current thread is not main thread
L1 regression estimates median whereas L2 regression estimates mean? Is any explanation offered for "hyper-sleep"? In Big Hero Six,      Callahan's daughter was found to be alive in the space between portals in what Baymax describes as "hyper-sleep".   I don't believe the movie offers any further explanation for this, or why Hiro isn't affected.  Are there any other sources that explain this? Suppose that $(s_n)$ converges to $s$, $(t_n)$ converges to $t$, and $s_n \leq t_n \: \forall \: n$. Prove that $s \leq t$. I'm stuck with the proof of the following:  Suppose that $(s_n)$ converges to $s$, $(t_n)$ converges to $t$, and $s_n \leq t_n \: \forall \: n$. Prove that $s \leq t$.   I've tried starting with $s_n \leq t_n \: \forall : n$ and the definitions of each limit (i.e. $|s_n - s| \leq \epsilon \: \forall \: n &gt; N_1$), but I'm not really getting very far. Any help is appreciated! Activating 'missing' standard GRASS utilities in QGIS Processing toolbox Extending the User model with custom fields in Django What's the best way to extend the User model (bundled with Django's authentication app) with custom fields? I would also possibly like to use the email as the username (for authentication purposes).  I've already seen a   to do it, but can't decide on which one is the best. A folder was created in my home folder (not by anyone), and I cannot see the folder contents. She has root privileges, but when the nautilus root access the folder is empty. When I try to remove it, it will appear to remove more than 1 million files from my computer, and I do not know what these files are.  How i can see these files? the name of folder created is "4F8ZBREShQ". I'm scared about it... How to make a circular array using offset object as center? How do I perform a Perl substitution on a string while keeping the original? Evaluating $\int_{I^n} \left( \min_{1\le i \le n}x_i \right)^{\alpha}\,\, dx$ Let $\alpha \in \mathbb R$ and let's call $I:=[0,1]$. Evaluate   $$  \int_{I^n} \left( \min_{1\le i \le n}x_i \right)^{\alpha}\,\, dx.  $$   Well, the case $n=1$ is easy and the integral equals $\frac{1}{\alpha+1}$, for every $\mathbb R \ni \alpha \ne - 1$.  I've done also the case $n=2$ and, if I'm not wrong, it's $\displaystyle \frac{2}{(\alpha+1)(\alpha+2)}$.  My big problem is that I cannot understand how to deal with the general case. Any ideas?   Thanks in advance. What can cause "Android OS" process to use high percentage of battery? Do I have to enter the UK on my UK passport? Maximum weight an average bicycle can carry? A few years ago, I've bought  (see edit) bike. At that time I was around 90 kgs and I didn't have any problems.  Today I'm around 120 kgs and I was considering (among other things) starting cycling again. Is this bike "good" enough to carry me? What should I expect? Any tips?  EDIT! Apparently, Drag have renamed some of their bikes in the last few years, so the above information is a bit wrong.  seems to be my bike. At first I didn't recognize much difference, but this one has suspension on the front which mine also has. Does this change anything What are the various units (ex, em, in, pt, bp, dd, pc) expressed in mm? How to convert physical Ubuntu operating system into a virtual machine? A while ago I turned my PC into dual boot with Windows and Ubuntu. But my experience is, that I rarely boot into Ubuntu, so I wanted to make it available as virtual machine in Windows rather than as a second OS. Can you provide me some information which is the tool of my choice and how I can achieve this migration? I already have VMWare Player installed. Riemann integrabilty of an indicator function Consider the following function on $[0,1]$:   $$f(x)=\begin{cases}1&amp;x\in\{a_1,a_2,\dots,a_n\}\\0 &amp;\text{otherwise}\end{cases}$$   The $a_i$ are fixed and all in $[0,1]$. Determine whether $f$ is Riemintegrable or not.   By the Riemann&ndash;Lebesgue criterion $f$ is Riemann integrable. How to prove directly? I am currently working on a model which takes two parameters and produces a measurement statistic. Think of it as Z = f(X,Y).   Z is a matrix of my statistics and I am creating a surface plot of it in matlab. Basically, I am looking for a mathematical/analytical way of determining if the surface is smooth, or if it is jagged. Do large values tend to be clustered together or are they dispersed throughout the matrix? - that is my question. Basically, how mixed up are the values of my matrix?  I need to run the model over different parameter sets and I want to be able to analytically determine which one of my surfaces is the smoothest, has the greatest clustering of large values, and ideally, has no negative values.   Any help will be greatly appreciated and please let me know if you need any further information.   Cheers Proving that kernels of evaluation maps are generated by the $x_i - a_i$ I want to prove that the kernel of the evaluation map $s_a : \mathbb{C}[x_1,\dots,x_n] \rightarrow \mathbb{C}, x_i \mapsto a_i$ where $a = (a_1,\dots, a_n) \in \mathbb{C}^n$ is the ideal generated by $\{x_1 - a_1, \dots, x_n - a_n\}$.    The proof in the book first shows it easily for the case $a = 0$, and says that by substitutions of variables $x_i' = x_i - a_i$, you can show it for the rest of the cases.  I know that $f \in \ker s_a$ iff $f(a) = 0$.  And $\phi : \mathbb{C}[x_1,\dots, x_n] \rightarrow \mathbb{C}[x_1 - a_1, \dots, x_n-a_n], x_i \mapsto x_i - a_i$ is a surjective ring homomorphism.  Please give a hint and not the full answer.  Thanks. How can I prove these statements? I use TeX Live 2010 and my editor is Texmaker Bidi. It was working probably good but from 2 months ago I've encountered with the error:   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! Fatal fontspec error: "cannot-use-pdftex" !  ! The fontspec package requires either XeTeX or LuaTeX to function. !  ! You must change your typesetting engine to, e.g., "xelatex" or "lualatex" ! instead of plain "latex" or "pdflatex". !  ! See the fontspec documentation for further information. !  ! For immediate help type H &lt;return&gt;. !...............................................   when I'm trying to load xepersian LaTeX.  but I do not know how can I change pdfLaTeX to XeLaTeX.    This is the second edit of my question .   the code is :    ‎\documentclass{article}‎ ‎\usepackage{pstricks}‎ ‎\usepackage{‎pst‎-‎bezier}‎ ‎‎\usepackage{xepersian}‎  ‎\settextfont{XB Zar}‎  ‎\setlatintextfont{Junicode}‎  ‎\setdigitfont{XB Zar}‎  ‎\begin{document}‎  ‎!‎سلام دنیا‎‎ ‎\begin{pspicture}(‎3‎,3)‎ ‎\psbcurve(1,2)(5,7)(2,2)(12,3)‎ ‎\end{pspicture}‎ ‎ ‎\end{document}   but the output does not include the shapes . How do I fill an area with faces lined up in a grid over a not flat surface? Hello to everyone again,  I'm looking for an addon or a short cut to fill fast and simmetrically a NOT FLAT surface that needs to be closed with vertices. Doing it manually it takes a lot of time. I tried to do CTRL F and then Grid fill,but it didn't work. Neither F key works. Check the attached screenshot. thanks.