I am trying to copy a text to a clipboard using below command:  Clipboard.SetText(textToCopy);   but an exception is thrown:    Anyway, text is correctly copied to clipboard. I can catch the exception so the user does not see it but I would like to know what is happening.
Why does the following code sometimes causes an Exception with the contents "CLIPBRD_E_CANT_OPEN":  Clipboard.SetText(str);   This usually occurs the first time the Clipboard is used in the application and not after that.
How to block any app from being installed? My mom has an android tablet and she doesn't even know what a site is, her e-mail, or even the password of her facebook account. She's an average user. The internet is facebook in her eyes. She has no need for apps or anything, it's just, only, precisely facebook. All is facebook.  How can I completely disable installing apps in android so they can't be installed in any way or form, I mean, not by URL, not by clicking, not by app store, not even by another program. Just disable the entire thing altogether.  Doesn't need to be safe, have locks, passwords etc. I'm not trying to secure the device from intruders, attackers or robbers, I'm trying to secure it from its very own user.  Please help. I just had to remove two anti-virus apps that were opening adware pages when she tried to open facebook lite, and that's obviously a no-go, apps which she "had not installed." Clearly there's some voodoo going on here for them to just popup, or maybe she just did it unknowingly, but none of that's relevant. How can you just disable installs so this couldn't ever happen again? What tool do I need to install to make my terminal show the autocompletion of the command that I'm writing? How to use pagenumbering in the document? In my Master thesis, I would like to have the title page without any page number and an acknowledgments section and the table of contents with roman numbers. The rest of the document should be numbered arabic.  I have tried this, to have roman numbers for the Table of contents and normal numbers for the rest.  \documentclass[12pt,ngerman,openany]{report} \usepackage{titlesec} \usepackage{titletoc} \usepackage{cite} \usepackage[a4paper]{geometry} %\usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} %\usepackage{ngerman}{babel} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{float} \selectlanguage{ngerman} \usepackage{amssymb} \usepackage{amsmath} \usepackage{url} \usepackage{epstopdf} \usepackage{scrhack} \usepackage{listings} \usepackage{caption} \titleformat{\chapter}{\rmfamily\huge}{\textbf\thechapter.}{25pt}{\huge\textbf} \defcaptionname{ngerman}{\lstlistingname}{Code} \defcaptionname{ngerman}{\lstlistlistingname }{Codeverzeichnis}  \lstloadlanguages{R}  \lstset{% general command to set parameter(s)    basicstyle=\sffamily\footnotesize, % print whole listing small    keywordstyle=\sffamily\footnotesize\bfseries, % ubold black keywords    identifierstyle=, % nothing happens    commentstyle=\sffamily\footnotesize\slshape, % green comments    stringstyle=\sffamily\footnotesize, % typewriter type for strings    showstringspaces=false, % no special string spaces    numbers=left,    numberstyle=\sffamily\footnotesize,    stepnumber=1,    numbersep=10pt,    showspaces=false,    showtabs=false,    frame=lines,    morecomment=[l]{\%},    float=htbp,    numberbychapter=true  }   \begin{document} \let\cleardoublepage\clearpage   \pagenumbering{roman}  \tableofcontents  \clearpage  \vspace*{75mm} \chapter{Einleitung} \section{Motivation} bla bla bla \section{Ziel}  bla bla \chapter{Stand der Technik zur Mustererkennung} \section{Die Zeitreihen} bla bla \subsection{Beschreibung} bla bla \subsection{Erklärung}  bla bla  \subsection{Vorhersage} bla bla \subsection{Kontrolle} bla bla \section{Feature Extraktion} bla bla \subsection{Autokorrelation} \subsection{Was ist Autokorrelation?} bla bla   \subsection{Autokorrelation und Zeitreihen} bla bla  \subsubsection{Zeitreihe-Diagramm}  bla bla \subsubsection{Lagged Streudiagramm} bla bla  \subsubsection{Autocorrelation-Function (Korrelogramm)} bla bla \subsection{Spektralanalyse} \subsection{Was ist Spektral-Analyse} bla bla \end{document} Area 51 login no longer redirects nor logs in Understanding how references and labels work Listing layers from .mxd file using ArcPy for ArcGIS Pro? Is “what’s” a correct short form of “what does”? E.g. “What’s he think?”  Usually ’s is short for “is” so I don’t know. Putting a table next to a figure Orthogonal basis for infinite-dimensional vector spaces I have a shell script with this code:  var=`hg st -R "$path"` if [ -n "$var" ]; then     echo $var fi   But the conditional code always executes, because hg st always prints at least one newline character.   Is there a simple way to strip whitespace from $var (like trim() in )?   or   Is there a standard way of dealing with this issue?   I could use  or , but I'd like to think there is a more elegant solution to this problem. If $f$ is continuous, nonnegative on $[a, b]$, show that $\int_{a}^{b} f(x) dx = 0$ iff $f(x) = 0$  "$\Rightarrow$" Assume by contradiction that $f(x) \neq 0$ for some $x_0 \in [a, b]$. Without loss of generality, assume that $f(x_0) &gt; 0$. Since $f$ is continuous, $\exists \delta &gt; 0$ such that $f(x) &gt; 0,  \forall x \in (x_0 - \delta, x_0 + \delta)$. Since $f$ is continuous on $[a, b]$, then it is Riemann integrable. Therefore $\int_{a}^{b} f(x) dx = \sup L(f, p)$ for some partition $p$. Now what I want to do is to show that the lower sum, $L(f, p) &gt; 0$, in that case its supremum is $&gt;0$, and that contradicts the condition that $\int_{a}^{b} f(x) dx = 0$. However, I don't know how to articulate it.  "$\Leftarrow$" If $f(x) = 0, \forall x \in [a, b]$, then $\int_{a}^{b} f(x) dx = \int_{a}^{b} 0 dx = 0$ Which tables are safe to clear? finite elements-exercice We consider in $\mathbb{R}^2$ the set of points $$\{M_1(-1,1),M_2(0,1), M_3(2,1),M_4(-1,0),M_5(1,0),M_6(2,0)\}$$  Let $\Omega$ a rectangular structure consisting of the heads $\{M_4(-1,0),M_6(2,0), M_3(2,1),M_1(-1,1)\}$  Let the two polygons $\sum_1 = \{M_4,M_5,M_2,M_1\}$ and $\sum_2 = \{M_5,M_6,M_3,M_2\}$   let the mesh $\{(e_1,\sum_1,Q_1),(e_2,\sum_2,Q_2)\}$ such $$Q_1=\{f : \mathbb{R}^2 \rightarrow \mathbb{R} , f(x,y) = a + bx + cy + d xy , a , b, c , d \in \mathbb{R}\}$$  1- Prove that $(e_1,\sum_1,Q_1)$ and $(e_2,\sum_2,Q_1)$ are two finite elements of Lagrange.  2- Let $V$ the finite-dimensional space that corresponds to the mesh. Prove that $V \nsubseteqq H^1(\Omega)$  My problem is to prove 2. Is my mobile AMD card being used? How can I find all files I can not write to?  Would be good if it takes standard permissions and acls into account.  Is there an "easy" way or do I have to parse the permissions myself? The infinite product of the sines of all positive integers is zero I tried to prove that $\prod\limits_{k = 1}^\infty  {\sin k = 0}$  Define $$P(m)=\prod\limits_{k = 1}^m  {\left|\sin k\right|}$$  then I take the logarithm of both sides $$\log P(m)=\log \prod\limits_{k = 1}^m  {\left|\sin k\right|}$$  which can be written as $$a_m=\log P(m)=\sum\limits_{k = 1}^m  {\log\,\left|\sin k\right|}$$ for any $k\in\mathbb{N}$ we have $0&lt;\left|\sin k\right|&lt;1$, so all terms of the sum above is strictly negative.  I say that the sequence diverges: $\left\{a_m\right\}_{m\in\mathbb{N}}\to\,-\infty$  This is a delicate point on which I have some doubts.  I know that  $$\int\limits_0^\pi  {\log \left|\sin x\right|{\text{ d}}x}  =  - \pi \log 2$$ and that the function $\log \left|\sin x\right|$ is periodic with period $\pi$,  so the integral from 1 to $\infty$ diverges to $- \infty$. Then the series diverges as well for the integral test for convergence.  As $\log P(m)\to\, -\infty$ we can say that $P(m)\to\,0$ as $m\to\,\infty$  Therefore $$\mathop {\lim }\limits_{m \to \infty } \prod\limits_{k = 1}^m {\left| {\sin k} \right| = \mathop {\lim }\limits_{m \to \infty } \prod\limits_{k = 1}^m {\sin k = \prod\limits_{k = 1}^\infty  {\sin k = } 0} }.\quad \blacksquare$$ Schengen Visa Refusal: Justification for the purpose and conditions of the intended stay was not provided Schengen refusal formulae can be difficult to understand sometimes.    When an applicant receives a refusal with "Justification for the purpose and conditions of the intended stay was not provided", what does it mean? SEO (or other) problems with a 404? Prove that inequality $\sum _{cyc}\frac{a^2+b^2}{a+b}\le \frac{3\left(a^2+b^2+c^2\right)}{a+b+c}$ Let $a&gt;0$,$b&gt;0$ and $c&gt;0$. Prove that:    $$\dfrac{a^2+b^2}{a+b}+\dfrac{b^2+c^2}{b+c}+\dfrac{c^2+a^2}{c+a}\le \dfrac{3\left(a^2+b^2+c^2\right)}{a+b+c}.$$     $$\Leftrightarrow \frac{(a^2+b^2)(a+b+c)}{a+b}+\frac{(b^2+c^2)(a+b+c)}{b+c}+\frac{(c^2+a^2)(a+b+c)}{c+a}\leq 3(a^2+b^2+c^2)$$  $\Leftrightarrow 2(a^2+b^2+c^2)+\frac{c(a^2+b^2)}{a+b}+\frac{a(b^2+c^2)}{b+c}+\frac{b(a^2+c^2)}{a+c}\leq 3(a^2+b^2+c^2)$  $\Leftrightarrow \frac{c(a^2+b^2)}{a+b}+\frac{a(b^2+c^2)}{b+c}+\frac{b(a^2+c^2)}{a+c}\leq a^2+b^2+c^2$  $\Leftrightarrow \frac{c(a+b)^2-2abc}{a+b}+\frac{a(b+c)^2-2abc}{b+c}+\frac{b(a+c)^2-2abc}{a+c}\leq a^2+b^2+c^2$  $\Leftrightarrow 2(ab+bc+ac)\leq a^2+b^2+c^2+2abc\left(\frac{1}{a+b}+\frac{1}{b+c}+\frac{1}{a+c}\right)$  I can't continue. Help me Block specific URL on web browsers I want to block certain URLs on browsers. I don't want to block whole site. For example, I want to block , but not whole  domain. Is there any way I can do it?