SMTP server does not respond to `SmtpClient` connection attempt. How do I fix this? 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
Sending email in .NET through Gmail 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?
prove that $24 \mid a(a^2-1)$ If $a$ is an odd integer, prove that $24 \mid a(a^2-1)$.  I proved in my class that $a^2=8k+1$ for some $k$, provided $a$ was odd.  So $$a(a^2-1)=(2k-1)(8k+1-1)=8k(2k-1)$$ but I can't pull a $24$ out of it. makefiles CFLAGS In the process of learning tinyos I have discovered that I am totally clueless about makefiles.  There are many optional compile time features that can be used by way of declaring preprocessor variables.  To use them you have to do things like:  CFLAGS="-DPACKET_LINK"        this enables a certain feature.  and    CFLAGS="-DPACKET_LINK" "-DLOW_POWER" enables two features.  Can someone dissect these lines for me and tell me whats going on? Not in terms of tinyos, but in terms of makefiles! What screenshot tools are available? I have noticed that many people use images in their Ask Ubuntu answers. What software are people using? koma-script/scrlayer-scrpage: How to get rid of the rulers at the page edge when enabling the draft class option? Is it possible to get rid of these rulers when enabling draft class option?  \RequirePackage{luatex85} \documentclass[draft]{scrreprt}  \usepackage{scrlayer-scrpage}  \usepackage[tuenc]{fontspec} \usepackage{graphicx,mwe}  \begin{document}  \begin{figure}[h]     \centering     \includegraphics[width=\textwidth]{example-image} \end{figure}  \end{document} Prove that $x^2 = - 1$ has no solution in $\mathbb{Z}$ I have this proposition to prove: The equation $x^2 = -1$ has no solution in $\mathbb Z$. I was told that this is an opportunity for a proof by contradiction. I have already proven that for $m \in\mathbb Z$, if $m \ne 0$ then $m^2 \in\mathbb N$. I have also proven that 1 is a natural number (hence, -1 isn't one).  Here is my strategy: assume that there is a solution. Hence $x^2$ has 3 options: \begin{align*} x^2 \in\mathbb N\\ -(x^2) \in\mathbb N\\ x^2 = 0 \end{align*}  Option 1 is not possible because -1 is not a natural number. Option 2 doesn't make sense because         -$\mathbb N \in \mathbb N$ and option 3 doesn't make sense either because $0 \ne -1$. What do you think? Thank you!    Here is a simpler strategy based on the comments below.  Proof: Assume that $x^2 = -1$ has a solution in $\mathbb Z$, then $x^2$ will either be $0$ or $\in\mathbb N$. However, $-1 \notin\mathbb N$ and $-1 \ne 0$. Hence, there is a contradiction. Here is how I have proven that $-1 \notin\mathbb N$: Let $m \in\mathbb N$. Hence:  \begin{align*} -m \notin\mathbb N\\ (-1)m \notin\mathbb N \end{align*}  If $-1 \in\mathbb N$, the product of $-1$ and $m$ should $\in\mathbb N$, which is not the case here. Hence, $-1 \notin\mathbb N$. Lightning Cancel Enqueued Server Side Action Chrome browser will not connect to intranet web addresses I'm relatively new to Ubuntu 16.04, and everything has been going fine until my OS threw this error today.   Below is the source code from /etc/apt/sources.list for line 54:  deb http://archive.canonical.com/ partner   I have tried appending ubuntu after the / and before partner, but this does not seem to work.   Any ideas what else to try? I can't run sudo apt-get update until this is fixed. How to sort lines by float number I've such a file:  name: xxx --- time: 5.4 seconds name: yyy --- time: 3.2 seconds name: zzz --- time: 6.4 seconds ...   Now I want to sort this file by these float numbers to generate a new file as below:  name: yyy --- time: 3.2 seconds name: xxx --- time: 5.4 seconds name: zzz --- time: 6.4 seconds ...   I've tried the command awk '{print $5}' myfile | sort -g but this will show me ONLY the float numbers. Seeking block (sub-district) level boundaries for India? I'm looking for block (sub-district) level shapefiles for India. The GADM database only has files for the 2300 Tehsils, whereas I'm looking for the about 5500 Census blocks (sub-districts) for any year possible. Why is accuracy not the best measure for assessing classification models? This is a general question that was asked indirectly multiple times in here, but it lacks a single authoritative answer. It would be great to have a detailed answer to this for the reference.  , the proportion of correct classifications among all classifications, is very simple and very "intuitive" measure, yet it may be a . Why does our intuition misguide us here and are there any other problems with this measure? I want to use the get_option() function of wordpress in one of my theme's files, which is not related to WP, it is just located in the same directory of the other theme files. I need this file because of some extra IPN paypal related actions, but I need some values from the options table that exists in WP to be called in this page in order for it to work. I know I can't just use get_option() as this file is overlooked by wordpress. Is there any approach by including some parts of wordpress in my theme to make this functionality only work? Chmod to allow read and write permissions for directory I have created directories in root. I am looking for the chmod command to allow all users read and write permissions to a specific directory. I have done chmod 775 for a file but I need this for a directory. This includes permissions on all files and sub directories. Book about mages who can harvest magical energy from the environment I have a vague recollection of a book I devoured while in college; it was from the late 80's or early 90's. I remember that there were two 'classes' of mages, the ones who could harvest magical energy from the environment and supply that power to the other 'class' of mages.  The main character learned that he could reverse the flow and sap the other mage of his/her power. I also seem to remember that there was a lot of technological warfare and travel to the planets moon(s)? check if "it's a number" function in Oracle When should you use a class vs a struct in C++? Fit mixture of distributions to your time-series data in R I have time-series data containing 1440 observations and the plot of the data is   I want to fit the Gaussian Mixture Models (GMM) to the above plot, and for the same I am using Mclust function of  package. Finally, I want a fit somewhat like this:   On using Mclust function, I do get following statistics     mclus_data &lt;- Mclust(givendataseries)    &gt; summary(mclus_data) ---------------------------------------------------- Gaussian finite mixture model fitted by EM algorithm  ----------------------------------------------------  Mclust E (univariate, equal variance) model with 8 components:   log.likelihood    n df      BIC      ICL        9525.438 1440 16 18934.52 18183.67  Clustering table:    1    2    3    4    5    6    7    8  1262    0    0    0    0   13  114   51    In the above statistic, I can not understand following:   Significance of log.likelihood, BIC and ICL. I can understand what each of them is, but what their magnitude/value refers to? It shows there are 8 clusters, but why cluster no. 2,3,4,5 has 0 values? What does this mean? From the plot it is clear that there must be two Guassians, but why Mclust function shows there are 8 Guassians?   Update: Actually, I want to do model based clustering of time series data. But currently  I want to fit the distribution to my raw data, as shown in Figure 1 on page no. 3 of  paper. For your quick reference, mentioned figure in said paper is I noticed that, for each research project, there comes a point where I have to consult the literature, and find all the previous research related to the current project.  Unfortunately, I seem to be very inefficient in my approach. I spend a lot of time digging through papers that are really interesting, but only of tangential importance to my current work, just to find the few papers that actually do similar things. (The pile of "cool paper, read when time" just keeps growing.)  Hence, I'm wondering: What is the most time efficient way to get a thorough overview of the literature in a specific niche of a field?    While searching for an answer I came across these questions:   - This question is quite similar and I liked the approach. I debated with myself if this is a duplicate, but I think it is focused more on how to be sure the search was exhaustive, whereas I'm worried about time efficiency. (Also, I'm a bit curious if things have changed since 2012.)   - The answer provides tips on how to identify what literature generally is important in a field, but I am looking for the most cost effective (least time consuming) way to do it in an area, where I know the broad literature, but not the specifics. Is it possible that $a_n>0$ and $\sum a_n$ converges then $na_n \to 0$? (without assuming $a_n$ is decreasing) What is so special about Prime?