I have problem with sending mail to gmail acc, IF im sending to outlook account im getting fine latter and its not junk.  so if in this line im write $mail-&gt;AddAddress  gmail account something like what test@gmail.com. I dont get any latter's, but if im writing outlook account, im getting mail like photo bellow My code in PHPMailer require 'PHPMailer/PHPMailerAutoload.php';  $mail = new PHPMailer;  $mail-&gt;SMTPDebug = 3;                               // Enable verbose debug output  $mail-&gt;isSMTP();                              // Set mailer to use SMTP $mail-&gt;Host = 'mail.sssss.lt';  // Specify main and backup SMTP servers $mail-&gt;SMTPAuth = true;                               // Enable SMTP authentication $mail-&gt;Username = 'noreply@sssss.lt';                 // SMTP username $mail-&gt;Password = 'q8sAFF3S';                           // SMTP password $mail-&gt;SMTPSecure = 'tls';                            // Enable TLS encryption, `ssl` also accepted $mail-&gt;Port = 587;                                    // TCP port to connect to $mail-&gt;SMTPOptions = array(     'ssl' =&gt; array(         'verify_peer' =&gt; false,         'verify_peer_name' =&gt; false,         'allow_self_signed' =&gt; true     ) );  $mail-&gt;From = &quot;noreply@sssss.lt&quot;;                $mail-&gt;FromName = &quot;Patvirtinimo laiskas &lt;noreply@sssss.lt&gt;&quot;;             $mail-&gt;AddAddress (&quot;sssss@gmail.com&quot;); $mail-&gt;AddReplyTo = &quot;noreply@sssss.lt&quot;;      $mail-&gt;WordWrap = 50;   $mail-&gt;isHTML(false);                                  // Set email format to HTML  $mail-&gt;Subject = 'Here is the subject'; $mail-&gt;Body    = 'This is the HTML message body &lt;b&gt;in bold!&lt;/b&gt;'; $mail-&gt;AltBody = 'This is the body in plain text for non-HTML mail clients';  if(!$mail-&gt;send()) {     echo 'Message could not be sent.';     echo 'Mailer Error: ' . $mail-&gt;ErrorInfo; } else {     echo 'Message has been sent'; }  All help will be appreciated
This is a tricky one and I've always relied on techniques, such as permission-based emails (i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology.  Of late, some of the emails I send out programmatically have started being shuffled into people's spam folder automatically and I'm wondering what I can do about it.  This is despite the fact that these particular emails are not ones that humans would mark as spam, specifically, they are emails that contain license keys that people have paid good money for, so I don't think they're going to consider them spam  I figure this is a big topic in which I am essentially an ignorant simpleton.
How to use different domains for multilingual sites and keep users logged in? I have a site that is in French and English. I am able to successfully setup so that users can switch back and forth between the two domains to view either language, however I cannot seem to keep users logged in. When they are logged into the english domain and then switch to the french domain they are required to login again. However if they switch back to the english domain they are still logged in.  As an example we'll use www.english-domain.com as the base (default) domain and www.french-domain.com as the secondary domain  In settings.php I have modified the following, however it doesn't seem to be keeping them logged in. Am I missing something?  /**  * Drupal automatically generates a unique session cookie name for each site  * based on its full domain name. If you have multiple domains pointing at the  * same Drupal site, you can either redirect them all to a single domain (see  * comment in .htaccess), or uncomment the line below and specify their shared  * base domain. Doing so assures that users remain logged in as they cross  * between your various domains.  */ $cookie_domain = 'english-domain.com';   Note: That I have also flushed both site and browser cache as well as deleted any cookies left on my machine.  Update:  Here are my language settings: Inequality ${n \choose k} \leq \left(\frac{en}{ k}\right)^k$ This is from page 3 of  ().  Copying the relevant segment:     Stirling’s approximation tells us $\sqrt{2\pi n} (n/e)^n \leq n! \leq e^{1/12n} \sqrt{2\pi n} (n/e)^n$. In particular we can use this to say that   $$ {n \choose k} \leq \left(\frac{en}{ k}\right)^k$$   I tried the tactic of combining bounds from $n!$, $k!$ and $(n-k)!$ and it didn't work. How does this bound follow from stirling's approximation? How to install with Wubi when it says "Could not retrieve the required disk image files"? I tried to install Ubuntu 12.10 with the Wubi installer while running Windows, because my PC does not accept my BootCD as a bootable medium.  But Wubi showed me this error:  Ubuntu-Installationsprogramm (X) Ein Fehler ist aufgetreten: Could not retrieve the required disk image files Weiter Informationen finden Sie in der Protokolldatei: c:\users\username\appdata\local\temp\wubi-12.10-rev273.log   What can I do, because I want to get rid of my Windows 7 and use the way better Ubuntu 12.10?  Thanks for your huge answer, now my next problem after trying to install wubi with the .iso is, that the same error shows up again and i am not shure which part of the errorreport you need.  Can you tell me? Because i'm not that good at linux. Here are some tips for tagging questions. These guidelines will help you more accurately tag your questions, which in turn will help them get more attention and lead to better answers faster.     For more information, see "" in the . A compact Hausdorff space that is not metrizable Is there an example of a compact Hausdorff space that is not metrizable?  I was thinking maybe the space of continuous functions $f: X \rightarrow Y$ between topological spaces $X, Y$, might work, but I'm sure I'm missing some conditions. In older versions of Windows and even in Windows 10 previews you could enable the built-in guest account in control panel     Control Panel\User Accounts\User Accounts\Manage Accounts     In Windows 10, the Guest entry is missing.  Using Computer Management or net user you can still enable the guest account, but even then it doesn't show up on the logon screen.  In the Local Security Policy secpol.msc:     Local Policies - User Rights Assignment - Deny log on locally   we can see guest listed, this wasn't the case in older versions of Windows.  After removing guest from that policy, it is listed on the logon screen and we can using it to log on.  However, the whole Explorer shell is crashing and restarting constantly. The desktop is blinking and you can't click anything.  So the guest account is totally broken.   There is a  about this showing that some code was quickly added to the control panel to not show the guest account. So Microsoft does know about the problem.  While I don't really expect anybody to know what they've done to break this, at least this explains why the guest account is currently not listed. Merging two SQLite databases which both have junction tables Get on what tile has mouse clicked I am writing a chess game using Java and Swing, And I wanted to get the tile position on which a mouse clicked. I searched through internet, but all of them were really off, and never accurate. When I clicked on a tile's first half, it said it was tile 1, but on the second half, it said it was tile 2, but it was still tile 1. So I was wondering, how can I do it? My tile size is (75, 75) This is the code I've written for tileX: Math.floor((double)evt.getX() / 75), and this is the code I've written for tileY: Math.floor((double)evt.getY() / 75). Code for drawing: ImageIcon l_winter = new ImageIcon(&quot;/Users/user/NetBeansProjects/chess/src/b/bibe/assets/winter/light.gif&quot;);         ImageIcon d_winter = new ImageIcon(&quot;/Users/user/NetBeansProjects/chess/src/b/bibe/assets/winter/dark.gif&quot;);         ImageIcon l_wood = new ImageIcon(&quot;/Users/user/NetBeansProjects/chess/src/b/bibe/assets/wood/light.png&quot;);         ImageIcon d_wood = new ImageIcon(&quot;/Users/user/NetBeansProjects/chess/src/b/bibe/assets/wood/dark.png&quot;);         String theme = th;         int color = 0;         for (int i = 0; i &lt; 600; i = i + 75) {             for (int j = 0; j &lt; 600; j = j + 75) {                 JLabel panel = new JLabel();                 panel.setText(null);                 panel.setSize(75, 75);                 if (color == 0) {                     if (theme.equals(&quot;wood&quot;)) {                         panel.setIcon(l_wood);                     } else if (theme.equals(&quot;winter&quot;)) {                         panel.setIcon(l_winter);                     } else {                         panel.setText(&quot;notexture&quot;);                     }                     //panel.setBackground(new Color(white[0], white[1], white[2]));                     color = 1;                 } else {                     if (theme.equals(&quot;wood&quot;)) {                         panel.setIcon(d_wood);                     } else if (theme.equals(&quot;winter&quot;)) {                         panel.setIcon(d_winter);                     } else {                         panel.setText(&quot;notexture&quot;);                     }                     //panel.setBackground(new Color(black[0], black[1], black[2]));                     color = 0;                 }                 panel.setLocation(j, i);                 getContentPane().add(panel);             }         if (color == 0) {             color = 1;         } else {                color = 0;             }         } Intuition behind logistic regression Recently I began studying machine learning, however I failed to grasp the intuition behind .   The following are the facts about logistic regression that I understand.   As the basis for hypothesis we use . I do understand why it's a correct choice, however why it's the only choice I don't understand. Hypothesis represents the probability that the appropriate output is $1$, therefore the domain of our function should be $[0,1]$, this is the only property of sigmoid function I found useful and appropriate here, however many functions satisfy this property. In addition, sigmoid function has a derivative in this form $f(x)(1-f(x))$, but I don't see the utility of this special form in logistic regression.   Question: what so special about sigmoid function, and why we cannot use any other function with domain $[0,1]$? The cost function consists of two parameters ${\rm Cost}(h_{\theta}(x),y)=-\log(h_{\theta}(x))$ if $y=1, {\rm Cost}(h_{\theta}(x),y)=-\log(1-h_{\theta}(x))$ if $y=0$. In the same was as above, I do understand why it's correct, however why is it the only form? For example, why couldn't $|h_{\theta(x)}-y|$ be a good choice for the cost function?  Question: what is so special about the above form of cost function; why cannot we use another form?   I would appreciate if you could share your understanding of logistic regression. How to use "fit" to frame the nodes and labels I'm using the fit TikZ library to fit a rectangle around two nodes which include labels. However, the rectangle is only fit around the actual nodes, not about their labels:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit}  \begin{document} \begin{tikzpicture}   \node [label=label1,draw] (node1) {Node1}; \node [label=label2,draw] (node2) at (4,2){Node2};  \node[fit=(node1)(node2), draw] {}; \end{tikzpicture} \end{document}     How to fit the rectangle also around the node labels? Mathematical journal for an undergraduate I want to make someone a present by subscribing for him to a mathematical journal. (It should appear every month or every two months). The contents should be comprehensible to an undergraduate in mathematics, and be about a broad selection of topics (for example not only analysis).   I expect the content to be something like proposing interesting problems and then giving solutions with some references for further study. Are there some famous journals you could suggest me? Can I view Shared Albums in the iCloud Photos web interface? Explaining different Standard Deviation results from same data in ArcGIS Desktop and MS Excel? I have done some interpolation in Geostatistical Analyst in ArcGIS and I got the Standard Deviation (SD) a bit different from the SD that I calculated in Excel Spreadsheet.   What algorithm does each package use? Why are the results different? I want to find a set of integer solutions of Diophantine equation: $ax + by = c$, and apparently $\gcd(a,b)|c$. Then by what formula can I use to find $x$ and $y$ ?   I tried to play around with it: $x = (c - by)/a$, hence $a|(c - by)$.     $a$, $c$ and $b$ are known. So to obtain integer solution for $a$, then $c - by = ak$, and I lost from here, because $y = (c - ak)/b$. I kept repeating this routine and could not find a way to get rid of it? Any hint?  Thanks, Chan Why doesn't archive.ubuntu.com use HTTPS? I always see instructions for adding the Universe and Multiverse repositories that look something like the following:  sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"   Recently I tried editing this to use HTTPS instead and was dismayed to find that archive.ubuntu.com doesn't appear to respond to HTTPS. Now I wonder how feasible it would be, or what damage could be done, if an attacker were to successfully perform a man-in-the-middle attack here?  Am I being too paranoid, considering the role these repositories perform on a system? One of our SQL Server 2014 database transaction logs is growing very fast and I cannot find the root cause for this.  Database in Simple recovery mode. During full backup the log file grows to its limits (800GB) and backup fails.  I checked the transactions during the backup and did not find anything strange.  All transactions are our regular loading and no maintenance jobs (index rebuilds etc.)  I am aware of that backup keep the log from reuse but this mean 800GB changes during the backup period and this does not make any sense.  I had compared this DB to similar DB size, loading and backup duration. The second DB Log is not growing more than 400GB.  DB size is 7TB. Backup time is ~20H. The only time log is growing is during backup. Log_reuse shows correct Backup_Restore. No long running transactions.  The problem is the "speed" of log growth - compared to similar sites with same load and same backup duration, the log is 4 time less. Our 3 months old baby is very keen on rolling over and being on his stomach. Most of the time he automatically rolls over in a few minutes after we put him on his back, including during bed time. Is this dangerous? We are particularly worried that   his nose maybe blocked when facing down it is said that SIDS risk increases when a baby sleeps on his stomach   If it is dangerous, how can we stop this, especially during bed time or other times when we can't watch him continuously? Text alignment issue in custom Table of Contents As you can see from the image below, I have an issue with the text alignment of extra long chapter names. How can I fix it so that the text will not go further left than the start of the chapter name? That is, I don't want any text to be underneath the "Appendix A" part.  I added that red line just to show how I'd like it aligned, if possible.    Here's my MWE:  \documentclass{book} \let\cleardoublepage\clearpage  \RequirePackage{titletoc} \RequirePackage{tikz} \RequirePackage[explicit]{titlesec} \RequirePackage{DejaVuSansCondensed} \RequirePackage[normalem]{ulem} \RequirePackage[   left=2.25in,   right=0.75in,   top=1.25in,   bottom=1.25in,   marginparwidth=1.75in,   marginparsep=.25in,   asymmetric]{geometry}  \renewcommand*\familydefault{\sfdefault} % Set default font  %%% Table of Contents ---------------------------------------------------------- \setcounter{tocdepth}{1} % Show only Chapters and Sections  %%% Change font/color/layout of TOC \makeatletter \titlecontents{chapter}[-2em] {\color{cyan}\bfseries\LARGE\addvspace{3mm}} {\makebox[4.4em][r]{\@chapapp}\contentslabel{-0.25em}\hspace{1.9em}} {} {\hspace{3em}\contentspage} \g@addto@macro{\appendix}{%   \addtocontents{toc}{\protect\renewcommand*{\protect\@chapapp}{\protect\appendixname}}% } \makeatother  \titlecontents{section}[5.3em] {\color{cyan}\large\itshape\addvspace{3mm}} {\contentslabel{0em}\hspace{3.2em}} {} {\hspace{3em}\contentspage} [\addvspace{0mm}]  %%% Chapter Header ---------------------------------------------------------- \makeatletter \titleformat{\chapter}   {\normalfont\sffamily\Huge\scshape}   {}{0pt}   {\thispagestyle{empty}    % Remove page number on new chapters   %\setcounter{definition}{0}   \begin{tikzpicture}[remember picture,overlay]     \node[yshift=-3cm] at (current page.north west)       {\begin{tikzpicture}[remember picture, overlay]         \draw[fill=cyan] (0,-1) rectangle           (25cm,3cm);         \draw[fill=cyan] (0,-24) rectangle           (25cm,-25cm);         \ifttl@label% &lt;---------------------- Added condition on \ifttl@label           \node[anchor=west,xshift=.21\paperwidth,yshift=-.01\paperheight,rectangle]               {\color{white}\LARGE \MakeUppercase{\@chapapp} \Huge\thechapter};         \fi% &lt;------------------------------- end condition on \ifttl@label        \end{tikzpicture}       };    \end{tikzpicture}\endgraf   \vskip-.7cm   \color{cyan}\Huge\raggedright\leftskip-1cm    \noindent\MakeUppercase{#1}\endgraf   } \makeatother  \titlespacing*{\chapter}{0pt}{10pt}{0pt}{}  \titleformat{\section}{\color{cyan}\itshape\LARGE}{\llap{\thesection} #1}{1em}{}[\titleline{\color{cyan}\titlerule[1pt]}] \titleformat{\subsection}{\color{cyan}\normalfont\large}{\; #1}{1em}{}  \begin{document}   \tableofcontents   \chapter{Turing Machines}     \section{The Turing Machine}     \section{Variations of the Turing Machine}       %\subsection{Non-deterministic Turing Machines}     \section{The Church-Turing Thesis}   \chapter{Decidability}     \section{The Universal Turing Machine}    \appendix   \chapter{ON COMPUTABLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHEIDUNGSPROBLEM} \end{document} Showing $\frac{x}{1+x}0$ using the mean value theorem Prove that $\sum_{k=1}^{n}k\binom{n}{k}=n\cdot2^{n-1}$ I want to prove the following: $$\sum_{k=1}^{n}k\binom{n}{k}=n\cdot2^{n-1}$$ what I did is(use binominal): $$\binom{n}{k}X^k\cdot 1^{n-k} = (X+1)^n$$ $$k\binom{n}{k}X^k\cdot 1^{n-k} = k(X+1)^k-1$$ now I replace $k$ by $n$ and insert $X=1$ , I will get now $n\cdot2^{n-1}$ what you are suggesting? there is another way to do that? thanks!