trying to send a password recovery email using the smpt protocol in c# and for some reason I can't seem to get it right. I will highly appreciate it of someone could help. This is what I was relying . And Here's the code:   enter cpublic void sendEmailWithPass( string username , string email , string password)     {         try         {             var fromAddress = new MailAddress("xxx", "xxx");             var toAddress = new MailAddress(email, "CLIENT!");             const string fromPassword = "xxx";             string subject = "recover password";             string body = "heloo! \n according to your request your password is: \n " + password;             var smtp = new SmtpClient             {                 Host = "smtp.gmail.com",                 Port = 587,                 EnableSsl = true,                 DeliveryMethod = SmtpDeliveryMethod.Network,                 UseDefaultCredentials = false,                 Credentials = new NetworkCredential(fromAddress.Address, fromPassword)             };             using (var message = new MailMessage(fromAddress, toAddress)             { Subject = subject, Body = body })             { smtp.Send(message); }             SendMessage("&amp;answerForgotRequest&amp;true!");         }         catch         {             SendMessage("&amp;answerForgotRequest&amp;failed!");         }                 }   in addition, this is the line which corresponds to the error   public void answerServer(string message)     {         string ans = message.Split('&amp;')[2];   if (ans.StartsWith("failed!"))         {             MessageBox.Show("an error was occured while trying sending the mail");         }   ]
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?
Block error on CMI I have two identical sites on Drupal 8 (A and B), on (A) I created a custom block(block/add), and then I export the configuration(drush config-export) and import this config on (B) (drush config-import), no error, but on the site (B) the block that I imported said on any region that I put "This block is broken or missing. You may be missing content or you might need to enable the original module." And I cant edit the content of this block. How I can fix that?  Site A:    Site B: Function whose inverse is also its derivative? What are some good examples of a function  $f : \mathbb{R} \to \mathbb{R}$ where its derivative is equal to its inverse? I attempted to find a monomial that satisfied it by starting with $f(x) = ax^b$ and showing that $f^{-1}(x) = f'(x) \implies b-1=\frac{1}{b} \implies b=\phi$ and got $$f(x) = \frac{x^\phi}{\sqrt[\phi]{\phi}}$$ Which seems to work according to WolframAlpha, but I'm having trouble double-checking it. Any other ideas? Mods folder missing from .minecraft folder I have Windows 10 and when I go to look in my .minecraft folder in the AppData folder, the mods folder is not there.    How can I find the mods folder? Can Resharper be set to warn if IDisposable not handled correctly? Is there a setting in Resharper 4 (or even Visual Studio itself...) that forces a warning if I forget to wrap code in a using block, or ommit the proper Dispose call in a finally block? How do I remove a file named "NUL" on Windows? I have a Windows XP box (NTFS filesystem) on which I found a file named NUL. I have not been able to remove this file in any usual way. The file appears to be owned by Administrator in the SYSTEM group, unlike any other file in the same directory (the other files are owned by my user id).  How do I get rid of this file? Where did it come from? How can a capacitive touch screen be triggered without human contact? I want to robotically touch an iPhone screen without any human intervention.   I've done some experiments but have not found a reliable solution. It seems even styluses that work through gloves still rely on the capacitive characteristics of the human body.    Carrot held by human works Carrot held in plastic clamp doesn't Pogo Stylus works held by human and held by human through clothes Stylus does not work held in plastic clamp.  Stylus works held in plastic clamp attached to human through clothes via jump lead. Stylus held in plastic clamp with jump lead dangling off seems to work most the time.   Is it possible to mimic the human element using capacitors and other components? What signal does the capacitive screen need to be triggered?  Thanks Is it possible to install Ubuntu FROM a smartphone? So, I'm in a situation were I want to install ubuntu in my laptop (currently running windows 8) but I don't happen to have pendrives, CDs or the like available. The only "external" device I have with me is a samsung galaxy s2 with a micro SD-card in it.   Is it possible to use the phone as a pendrive to install ubuntu from it somehow? (without damaging the phone's OS and data) How to prevent water from freezing .       The  has no sign of the user sharth The  also does not have any sign of related activity   I would like to know why the user's name is associated with the question. At least why their display name shows up as having modified the question timeline activity.  Possible reason that I can think of is that, .  Is this the reason?  Is there a way (for normal users), to look for such details, other than looking at the user activity and the question's revision history. The Wikipedia  has a derivation of the Klein-Gordon equation.  It gets to this step:  $$\sqrt{\textbf{p}^2 c^2 + m^2 c^4} = E$$  and inserts the QM operators to get  $$\left( \sqrt{ (-i \hbar \nabla)^2 c^2 + m^2 c^4 } \right) \psi = i\hbar\frac{\partial}{\partial t} \psi$$  The article then says     This, however, is a cumbersome expression to work with because the differential operator cannot be evaluated while under the square root sign. In addition, this equation, as it stands, is nonlocal.   To fix this, the first equation is squared instead to get  $$\textbf{p}^2 c^2 + m^2 c^4 = E^2$$  after which the QM operators are inserted and the expression is simplified to get  $$-\hbar^2 c^2 \nabla^2 \psi + m^2 c^4 \psi = -\hbar^2 \frac{\partial^2}{\partial t^2} \psi$$  A couple things I don't understand.  First, are the solutions to this differential equation not exactly the same as the solutions to the first differential equation?  Both sides of the starting equation were squared, so it seems to me that regardless of the particular form of the resulting differential equation, both of them should have the exact same set of solutions.  Secondly, why is the first differential equation cumbersome to work with?  It seems like it would in fact be easier to work with, since the operator under the square root could be expanded in terms of a Taylor series and then you have an equation that is first order in time.  And finally, can someone elaborate on what nonlocal means? The linked article on the Wikipedia page didn't entirely help me understand it. Is there any way to add if elif and else in drivers?  Given the way we do if and else, here are two examples out of few other things i tried to get the statement right but unable to do so:  var-3.5 if (var&lt;0) var+3.5 elif (var&gt;0) else 1  var-3.5 if (var&lt;0) elif var+3.5 (var&gt;0) else 1   And also if there's any other way to add multiple if/else similarly? What are point releases in LTS versions? There are so called "point releases" for LTS versions of Ubuntu. 10.04.3 for instance.  What are those "point releases" releases? How many switches can be stacked/interconnected? gedit: search and replace with regular expressions I want to replace this with gedit:   1299465 |  2003415 | 2015-09-06 05:35:34.59662+02  1299449 |  2009400 | 2015-09-06 05:35:32.301683+02  1299450 |  2008465 | 2015-09-06 05:35:32.451393+02  1299457 |  2015211 | 2015-09-06 05:35:33.451049+02   to that:  2003415 2009400 2008465 2015211   How can I do this with gedit?  Background: I want to do it with gedit and not sed/python/.... since the replace needs to be done interactive. How can I take a screenshot with Selenium WebDriver? What's a word for lack of confidence? I'm trying to find a word that describes a lack of confidence. Something that gives a sense of worthlessness maybe. I've dried looking up in Thesarus.com for similarities to lack of confidence and antonyms to self-worth, but with no luck. Anyone have some ideas? My boot is horribly slow, and I don't know why.  $ systemd-analyze  Startup finished in 10.975s (kernel) + 49.732s (userspace) = 1min 708ms $ systemd-analyze blame           34.971s apt-daily.service          20.590s snapd.refresh.service          17.113s grub-common.service          16.033s apport.service          16.027s networking.service          15.894s ondemand.service          15.860s irqbalance.service          15.655s speech-dispatcher.service          11.695s ModemManager.service           9.772s accounts-daemon.service           8.626s NetworkManager-wait-online.service           8.058s systemd-logind.service           8.053s bluetooth.service           7.944s gpu-manager.service           7.896s alsa-restore.service           7.892s pppd-dns.service           7.882s rsyslog.service           7.860s avahi-daemon.service           7.844s dev-sda1.device           7.842s systemd-user-sessions.service           7.648s lightdm.service           7.610s teamviewerd.service           6.445s apparmor.service   Also, during boot-up, I see a message that says something like:  device descriptor read/all, error -62 ata1 softreset failed (device not ready) #most of the times error loading journal #(sometimes) Test WP failed, assume Write Enabled Asking for cache data failed     #most of the times Assuming drive cache: write through   apt-daily.service slows the boot the most. Any idea on how to tackle that?  I have Ubuntu MATE 16.04. Show that $S$ is compact. Let $A \in M_n(\bf C)$ and let   $S=\{ A \in M_n(\bf C) : A=A ^*$ and  $\rho (A) \leq 1 \}$, $\rho(A)$ denotes spectral radius of $A$.     Show that $S$ is compact subset of $M_n(\bf C) \cong \bf C^{n^2} $ with usual topology.    $S$ is subset of $\bf O_n(C)$ which is compact so I think its enough to show that $S$ is closed.Please help. Suppose that $ f $ is entire and that for each $ z $, either $ |f(z)| \leq 1 $ or $ |f^\prime (z) |\leq 1 $. Prove that $ f $ is a linear polynomial. My question is in the title. I'm a little lost in how to solve this problem. There is a hint associated with the problem that states the following:   Use a line integral to show that $ |f(z)| \leq A + |z| $ where A = $\max\{1, |f(0)|\}$  Thanks for the help. For some of the apps I've developed (then proceeded to forget about), I've been writing plain SQL, primarily for MySQL.  Though I have used ORMs in python like , I didn't stick with them for long.  Usually it was either the documentation or complexity (from my point of view) holding me back.  I see it like this: use an ORM for portability, plain SQL if it's just going to be using one type of database. I'm really looking for advice on when to use an ORM or SQL when developing an app that needs database support.  Thinking about it, it would be far better to just use a lightweight wrapper to handle database inconsistencies vs. using an ORM.