How to limit UITextView character limit in MonoTouch?
MonoTouch.Dialog: How to set limit of number of characters for EntryElement
We are given two independent standard normal random variables $X$ and $Y$. We need to find out the M.G.F of $XY$.  I tried as follows : \begin{align} M_{XY}(t)&amp;=E\left(e^{(XY)t}\right)\\&amp;=\int_{- \infty}^{\infty}\int_{- \infty}^{\infty}e^{(XY)t}f_X(x)f_y(y)dxdy \\ &amp;=\dfrac{1}{2\pi}\int_{- \infty}^{\infty}\int_{- \infty}^{\infty}e^{(xy)t}e^{\frac{-x^2}{2}}e^{\frac{-y^2}{2}}dxdy \\ &amp;= \dfrac{1}{2\pi}\int_{- \infty}^{\infty}\int_{- \infty}^{\infty}e^{-\dfrac{(x-ty)^2}{2}}e^{\dfrac{-t^2y^2}{2}}e^{\frac{-y^2}{2}}dxdy \\ &amp;= \dfrac{1}{\sqrt{2\pi}}\int_{- \infty}^{\infty}e^{\dfrac{-t^2y^2}{2}}e^{\frac{-y^2}{2}}dy \\ &amp;= \dfrac{1}{\sqrt{2\pi}}\int_{- \infty}^{\infty}e^{-y^{2}(\frac{1}{2}+t^2)}dy \\ &amp;= \dfrac{1}{\sqrt{1+2t^2}} \end{align} Is this correct ? Is there a general formula for image size vs. print size? What size images do I need for common print sizes, such as wallet size, 8x10, and 16x20?  Is there a general formula?  How could that size change if, for example, a 16x20 was printed on canvas rather than photopaper? The problem is this:      Suppose $I \subseteq R$ is a nilpotent ideal and there is $r \in R$ with $r \equiv r^2 \pmod I$. Show $r \equiv e \pmod I$ for some $e \in R$ idempotent.   I have spent a few hours rolling around in abstracta with no destination. I believe that if I could write down a concrete example of this, the example could guide me through the abstract definitions and show me where to look for an idempotent in $R$. I have looked at 2x2 matrices and could not find any such examples. Might anybody have one? Find $\lim_{x \to 0} (\frac{\tan(x)}{x})^{\frac{1}{x}}$ Find $$\lim_{x \to 0} (\frac{\tan(x)}{x})^{\frac{1}{x}}$$   My first idea to solve this was to try to evaluate it and then apply the L'Hospital's rule. This is what I managed to achieve: $$\left(\frac{\tan(x)}{x}\right)^\frac{1}{x}=e^{\frac{1}{x}\ln\left(\frac {\tan(x)}x \right)} $$ However, this is problematic, because the L'Hospital's rule is not applicable in the exponent, therefore my transformation was not a good shot. What transformation should I apply to get the desired form? Book: Nanobot apocalypse on Earth, originally used for weather control Invalid SSL certificate when pushing to Git server Iterating through a Collection, avoiding ConcurrentModificationException when removing objects in a loop We all know you can't do the following because of ConcurrentModificationException:  for (Object i : l) {     if (condition(i)) {         l.remove(i);     } }   But this apparently works sometimes, but not always. Here's some specific code:  public static void main(String[] args) {     Collection&lt;Integer&gt; l = new ArrayList&lt;&gt;();      for (int i = 0; i &lt; 10; ++i) {         l.add(4);         l.add(5);         l.add(6);     }      for (int i : l) {         if (i == 5) {             l.remove(i);         }     }      System.out.println(l); }   This, of course, results in:  Exception in thread "main" java.util.ConcurrentModificationException   Even though multiple threads aren't doing it. Anyway.  What's the best solution to this problem? How can I remove an item from the collection in a loop without throwing this exception?  I'm also using an arbitrary Collection here, not necessarily an ArrayList, so you can't rely on get. When you add an image strip to the Video Sequence Editor, it stretches/shrinks your image to fit the full output frame.  How can I add an image at its original resolution?  For example, if I add a 60x60 pixel image, it should appear very small in the final 1080p render. Irrationality proofs not by contradiction Per now, I have basically come upon proofs of the irrationality of $\sqrt{2}$ (and so on) and the proof of the irrationality of $e$. However, both proofs were by contradiction.  When thinking about it, it seems like the definition of irrationality itself demands proofs by contradiction. An irrational number is a number that is not a rational number. It seems then that if we were to find direct irrationality proofs, this would rely on some equivalent definition of irrational numbers, not involving rational numbers themselves.   Are there any irrationality proofs not using contradiction? Function with limits only at irrational points This is the starred example 5.1.8 in Krantz' Real Analysis and Foundations.     Give an example of a function $f: \mathbb{R} \rightarrow \mathbb{R}$ so that $\lim_{x\rightarrow c} f(x)$ exists when $c$ is irrational but does not exist when $c$ is rational.   I'm aware of the Dirichlet and Thomae functions but this seems slightly different. I'm not even sure a solution exists. Thanks for any help! Other than the general inductive method,how could we show that $$\sum_{r=0}^n \frac{(-1)^r}{r+1}\binom{n}{r} = \frac1{n+1}$$  Apart from induction, I tried with  to check the validity, but I can't think of an easy (manual) alternative.  Please suggest an intuitive/easy method. Is there a way in javascript to detect if the unload event is caused via a refresh, the back button, or closing the browser? I am currently looking at the "unload" event of a window to try to determine how the "unload" event was triggered, but am having little success. Is there a way to determine how the javascript event was triggered?   Page Refresh Back Button (or navigate away from the page) Closing the Browser   Essentially I need to execute some code only when the browser window is being closed, not refreshed or navigated away from.  Purpose: When a customer does an update of our software, the update will redirect their first Internet request to an offer page. There is a button for a "Do Not Bother" option, but some users will simply close their browser. Upon closing the browser, I need to duplicate the "Do Not Bother" functionality so the user no longer gets redirected to the offer page. Simply attaching to the "unload" event will not work due to the different ways of leaving a page. Can anybody explain the necessity of the RC network shown in the figure. I found this in circuit for a logic power supply using Fly-Back converter? Changing projection of shapefile in QGIS How do I change the projection of my shapefile using QGIS? The default projection is set to EPSG:3003, I want to change it to WGS84 EPSG:32632. When I do a reprojection or I change projection in the properties mask I don't have the correct result. On the left, I have the plan coordinates but they are not correct for the EPSG shown on the right: Cannot change backlight brightness Ubuntu 14.04 I am interested in publishing a GML file as a WFS. I don't want to use a database like PostgreSQL. What would be the rough steps I need to do for that? I like to use open source software (geoserver). I don't have much experience. I am just looking for a rough guide what kind of software I should look into and which step follows which step.. Since my previous questions were not answered I will try to ask again more precisely.  I previously had the Nvidia driver installed and working correctly.  Then the ubuntu software update did something which broke it.  In fact, it completely de-configured it so that the standard display driver is used when the computer reboots.  I would like to re-enable the existing Nvidia  driver without re-installing the Nvidia driver.  How do I do that?  This machine is no longer connected to the internet.  NOTE: I am not asking how to disable automatic updates in this question.  I asked that elsewhere (and it wasn't answered).  NOTE: I am not asking how to stop the Ubuntu software updater from breaking the Nvidia driver the next time it updates the system.  That would be nice to know, but I asked that already and did not receive the correct answer either.  NOTE: Please don't make this as duplicate simply because someone else asked a question about Ubuntu and the software updater.  Try to read the actual question and see how it's different and try to realize how annoying it is when users have to spend hours of their own time to correct the problems that other people causing by incorrectly designing software updaters. At the onset of my live usage in Ubuntu Gnome 15.10, use a bash script to set the colour of my gnome-terminal. The code used is link=/org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9 dconf write $link/background-transparency-percent '10' dconf write $link/scrollback-unlimited true dconf write $link/use-theme-colors false dconf write $link/use-theme-transparency false dconf write $link/use-transparent-background true dconf write $link/foreground-color 'rgb(0,43,54)' dconf write $link/background-color 'rgb(131,148,150)'  The last 2 lines of the code give a key-value error. When I look at the dconf-editor org&gt;gnome&gt;terminal&gt;legacy&gt;profiles:&gt;{Default profile} the attributes  foreground-color background-color  are unavailable. How do I get rid of the error? Note: When done manually via gnome-ternimal&gt;Edit&gt;Profile Preferences&gt;Colours&gt;Built-in schemes the above attributes appear in the same location in dconf-editor. How to make an image center (vertically & horizontally) inside a bigger div Is it possible for a system to have negative potential energy?