I tried to write code for sending an email with .NET. This is what I have so far:  MailMessage mail = new MailMessage("mymailaddress@yahoo.com", address); mail.Subject = subject; mail.Body = body; client.Host = "smtp.gmail.com";  client.Port = 587; client.Send(e);   The problem is I get the following exception:      Unhandled Exception: System.Net.Mail.SmtpException: Failure sending mail.           System.Net.WebException: Unable to connect to the remote server.                 System.Net.Sockets.SocketException: A connection attempt failed because the connected party       did not properly respond after a period of time, or established connection failed because connected host has failed to respond 173.194.66.109:587
Instead of relying on my host to send an email, I was thinking of sending the email messages using my Gmail account. The emails are personalized emails to the bands I play on my show.   Is it possible to do it?
Can you attach a UIGestureRecognizer to multiple views? Can we really not tell if we are moving? It has been a while since I've thought about physics, however, I remember something about how if you are on a train with no windows that is going perfectly straight and is perfectly smooth, there is no experiment that you could perform to prove that you are in motion or at rest. So I have a couple of questions related to this.   Is this still held to be true? I was just wondering if anything in physics has come to light since I learned about this (about 10 years ago) that would allow an observer on the train to tell if they are moving. If this is true, why couldn't you accelerate a particle in different directions to a certain mass and measure how much energy it took to get it up to that mass. If you were moving in any direction, wouldn't you measure less energy in your direction of travel? Would having an outside observer affect the aforementioned experiment in any way? In newer Google Maps I can make area available offline.  Do other applications that rely on Google Maps (utilize Google Maps Android API) use offline maps? I'm writing a sports management simulation game. Like most sport management games, it makes heavy use of statistics. I would like to use real players, teams and league names.  i) Am I running the risk of getting into legal battles if I should use the real names? ii) Also what about team colours and emblems etc?    Update Much thanks for all the input! Can I travel to Canada with valid visa on old/expired passport? Automatically protect questions with three or more low-rep-user deleted answers There are a few "automatically protect questions" requests out there, but I'd like to add another twist.  I'd like to request that questions that have three or more deleted answers by users with &lt;50 rep be automatically protected.  The reasoning behind this is that we have lots and lots of "not an answer" flags in the mod queue.  But we cannot protect a question from the mod queue, so we have to open each answer, evaluate if the question needs protecting, then protect it.    This process takes a long time, and can definitely be automated, as the only thing you really need to check is how many new users are posting non-answers or are spamming their awful products. Calculating MEAN and STANDARD DEVIATION confussed [] ** calculate the mean and standard deviation of each investment, assume that both returns come from independent samples, are both normally distributed and that the (true but unknown) variances are the same,, Can someone could check my  calculations for  mean and standard deviation? I did calculations but not sure what to do with negative values of distances(If if am correct Investment A MEAN= 78.6875 when it comes to calculating standard deviation i have to power difference by 2 ?  ** Solving functional equation $f(x+y)+f(x-y)=2f(x)\cos y$? How can I solve this functional equation, where $x,y$ are any real numbers and $f:\mathbb{R}\to \mathbb R$ is a function such that : $$f(x+y)+f(x-y)=2f(x)\cos y$$    I tried substituting $x=0$ to get $f(y)+f(-y)=2f(0)\cos y$ . Taking $x=y$ gives $f(2x)+f(0)=2f(x)\cos x$. I similar get some more relations like that, but its not really helping me in finding anything useful. I also think the function must either be $\sin$ or $\cos$ looking at the product to sum formulae. Can anyone tell me how should I solve this? Can you cast a spell at a higher level, even if it doesn't have an "At higher levels" entry? Many spells have "At higher levels" that provides for more targets or more damage.  For example Magic Missile can be cast as a second level spell and shoot 4 missiles instead of it's 3 as a first level spell.  Can a spell without that verbiage, such as Firestorm be cast in higher level slots for the same effect as the lower level spell? Controlling the value of 'this' in a jQuery event I have created a 'control' using jQuery and used jQuery.extend to assist in making it as OO as possible.  During the initialisation of my control I wire up various click events like so  jQuery('#available input',              this.controlDiv).bind('click', this, this.availableCategoryClick);   Notice that I am pasing 'this' as the data argument in the bind method. I do this so that I can get at data attached to the control instance rather from the element that fires the click event.   This works perfectly, however i suspect there is a better way  Having used Prototype in the past, I remember a bind syntax that allowed you to control what the value of 'this' was in the event.  What is the jQuery way? Google analytics: Tracking Not Installed What happens if 2 separate abilities require you to sacrifice a creature? Windows 10 "Enable NTFS long paths policy" option missing Absolutely continuity and Lipschitz-like continuity I'm trying to figure out if the following is true or false:  Let $\mu$ and $\nu$ be finite measures on Borel subsets of $[0,1]$,and $\nu \ll \mu$ ($\nu$ is absolutely cts with respect to $\mu$). Does there exist always a $C \in \mathbb{R}$ such that $\forall A \subseteq [0,1]$ that is Borel, we have $\nu(A)$ $\lt$ $C \mu (A)$.  The Radon-Nykodym theorem seems to almost suggest that is true, if I knew it was bounded, then I could say $\nu (A) \le \int_{A} g \ d\mu \le \int_{A} C \ d\mu \le C\mu (A)$, where $C$ is the bound. However, I don't know if it is bounded and in fact, I could take an unbounded function that is still integrable on $[0,1]$, such as $\frac{1}{\sqrt x}$.  I can't even be sure if it is true or false.   Thank you! Custom 500 Error page: Is there a way to theme a fatal error? In /core/includes/errors.inc, when there is a fatal error it outputs a response with the message "The website encountered an unexpected error. Please try again later." and a back-trace, if error_level is set to verbose, and without the back-trace otherwise.  It seems like at this point, there's no way, with an event subscriber to capture the response and alter it.  Is that correct?  Or is there a way to wrap the output from line 268 of errors.inc in Drupal 8.4 with markup?    Note, there's another , but that doesn't offer a complete solution.  Also, I looked into .htaccess and Apache ErrorDocument directive, but that . Once Apache passes off to PHP, it can no longer use that directive.  That's for real server errors. In what situation do you put a comma before "because"?   And, when do you not put a comma before "because"?   I've always assumed that you put a comma, because the clause introduced by "because" will always be independent, because it cannot stand on its own, because it wouldn't make sense on its own.   Is this the case? Could you think of an example where it doesn't take a comma? How can I use text-processing tools to insert a new line after every N lines?  Example for N=2:  INPUT:   sadf asdf yxcv cxv eqrt asdf   OUTPUT:   sadf asdf  yxcv cxv  eqrt asdf ''More than one row returned by a subquery used as an expression'' postgres error What are the differences between a pointer variable and a reference variable in C++? Prove by induction $\sum_{i=1}^ni^3=\frac{n^2(n+1)^2}{4}$ for $n\ge1$ Prove the following statement $S(n)$ for $n\ge1$:  $$\sum_{i=1}^ni^3=\frac{n^2(n+1)^2}{4}$$  To prove the basis, I substitute $1$ for $n$ in $S(n)$:  $$\sum_{i=1}^11^3=1=\frac{1^2(2)^2}{4}$$  Great. For the inductive step, I assume $S(n)$ to be true and prove $S(n+1)$:  $$\sum_{i=1}^{n+1}i^3=\frac{(n+1)^2(n+2)^2}{4}$$  Considering the sum on the left side:  $$\sum_{i=1}^{n+1}i^3=\sum_{i=1}^ni^3+(n+1)^3$$  I make use of $S(n)$ by substituting its right side for $\sum_{i=1}^ni^3$:  $$\sum_{i=1}^{n+1}i^3=\frac{n^2(n+1)^2}{4}+(n+1)^3$$  This is where I get a little lost. I think I expand the equation to be  $$=\frac{(n^4+2n^3+n^2)}{4}+(n+1)^3$$  but I'm not totally confident about that. Can anyone provide some guidance?