I want to send an email using sendmail command in bash. The email should get it's body by reading Input_file_HTML and it should send same input file as an attachment too. To do so I have tried the following.  sendmail_touser() { cat - ${Input_file_HTML} &lt;&lt; EOF | /usr/sbin/sendmail -oi -t From: ${MAILFROM} To: ${MAILTO} Subject: $1 Content-Type: text/html; charset=us-ascii cat ${Input_file_HTML} Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Content-Disposition: attachment; filename: ${Input_file_HTML} EOF }   The above command is giving an email with only the attachment of Input_file_HTML and it is not writing it in the body of email. Could you please help/guide me on same? I am using outlook as the email client. I have even removed the cat command in above command, but it also is not working.
I've created a script that runs every night on my Linux server that uses mysqldump to back up each of my MySQL databases to .sql files and packages them together as a compressed .tar file.  The next step I want to accomplish is to send that tar file through email to a remote email server for safekeeping.  I've been able to send the raw script in the body an email by piping the backup text file to mailx like so:  $ cat mysqldbbackup.sql | mailx backup@email.com   cat echoes the backup file's text which is piped into the mailx program with the recipient's email address passed as an argument.  While this accomplishes what I need, I think it could be one step better, Is there any way, using shell scripts or otherwise, to send the compressed .tar file to an outgoing email message as an attachment?  This would beat having to deal with very long email messages which contain header data and often have word-wrapping issues etc.
Do SharePoint 2013 JavaScript Client object model support run with elevated privileges code Can I elevate Visitors Group users permission via javascript client object model code to do some list or library item updates ? Apparently, you can speed up your computer by adding more RAM. Is the amount of ram to be added is directly or indirectly related to the amount of hard-disk  space, processor speed, Motherboard etc... Can the memory of a RAM be compared with Virtual Memory and Cache Memory?  Note: About my PC Configuration: Intel core i5 processor, Motherboard DP55WB 4GB RAM, 700 GB Hard-disk space. Create a variable in .CSS file for use within that .CSS file Possible Duplicate:          We have some "theme colors" that are reused in our CSS sheet.  Is there a way to set a variable and then reuse it?  E.g.  .css OurColor: Blue  H1 {   color:OurColor; } Subgroup of $\mathbb{Q}$ with finite index Show that $R/I\otimes_R R/J\cong R/(I+J)$ Is the wave-particle duality a real duality? I am trying to install Linux headers for Kali Linux on my machine and I have tried every possible solution on the internet but it always show "Unable to locate packages "  root@kali:/usr/sbin# apt-get install linux-headers-4.6.0-kali1-amd64 Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package linux-headers-4.6.0-kali1-amd64 E: Couldn't find any package by glob 'linux-headers-4.6.0-kali1-amd64' E: Couldn't find any package by regex 'linux-headers-4.6.0-kali1-amd64'   Here is my sources.list file :  # Regular Repositories deb http://http.kali.org/kali sana main non-free contrib deb http://security.kali.org/kali-security sana/updates main contrib non-free # Source repositories deb-src http://http.kali.org/kali sana main non-free contrib deb-src http://security.kali.org/kali-security sana/updates main contrib non-free   Uname -a output :   root@kali:/usr/sbin# uname -a Linux kali 4.6.0-kali1-amd64 #1 SMP Debian 4.6.4-1kali1 (2016-07-21) x86_64 GNU/Linux This question is about an efficient way to compute principal components.   Many texts on linear PCA advocate using singular-value decomposition of the casewise data. That is, if we have data $\bf X$ and want to replace the variables (its columns) by principal components, we do SVD: $\bf X=USV'$, singular values (sq. roots of the eigenvalues) occupying the main diagonal of $\bf S$, right eigenvectors $\bf V$ are the orthogonal rotation matrix of axes-variables into axes-components, left eigenvectors $\bf U$ are like $\bf V$, only for cases. We can then compute component values as $ \bf C=XV=US$. Another way to do PCA of variables is via decomposition of $\bf R=X'X$ square matrix (i.e. $\bf R$  correlations or covariances etc., between the variables ). The decomposition may be eigen-decomposition or singular-value decomposition: with square symmetric positive semidefinite matrix, they will give the same result $\bf R=VLV'$ with eigenvalues as the diagonal of $\bf L$, and $\bf V$ as described earlier. Component values will be $\bf C=XV$.   Now, my question: if data $\bf X$ is a big matrix, and number of cases is (which is often a case) much greater than the number of variables, then way (1) is expected to be much slower than way (2), because way (1) applies a quite expensive algorithm (such as SVD) to a big matrix; it computes and stores huge matrix $\bf U$ which we really doesn't need in our case (the PCA of variables). If so, then why so many texbooks seem to advocate or just mention only way (1)? Maybe it is efficient and I'm missing something? Is there an English word meaning "the use of uncommon words"? Is there an English word meaning "the use of uncommon words" or similar? Existence of minimal prime ideal contained in given prime ideal and containing a given subset Let $R$ be a unital commutative ring, $P$ $\subseteq$ $R$ a prime ideal, $X\subseteq P$ a subset. Show there exists a minimal (inclusion minimal) prime ideal contained in $P$ which contains $X$.   My approach: Let $\langle X\rangle$ be the ideal generated by $X$. $P^c$ is a multiplicative set, as $P$ is prime. $\langle X\rangle\subseteq P\subseteq R$ and $P^c\cap\langle X\rangle=\emptyset $ so by Zorn's lemma there exist prime ideal $I_1$ satisfying $\langle X\rangle\subseteq I_1\subseteq P$. As $I_1$ is prime, it's complement is a multiplicative subset which does not intersect $\langle X\rangle$, hence I can find prime ideal $I_2$ satisfying $\langle X\rangle\subseteq I_2 \subseteq I_1$ and so on... I've got an infinite descending chain of prime ideals and I can't be sure that the process will stop.  Hints will be appreciated, thank you.   Edit: Can I conclude that every prime ideal contains a minimal prime ideal? I think some good words would be conflicted, or confused. As an example of context, think of someone who believes in freedom of speech, but, at the same time, they would support banning comedians who make jokes about certain issues that person cares about. Single word to denote date and time I want one word that means Date and Time. For example in "the date and time of the event will be announced later" I want to use single word instead of "date and time" Asynchronous shell exec in PHP Java Access Denied How can I control a servo motor with the PWM output of a microcontroller? I wanted to control the direction of servo motor with a switch. I am using an Atmega32.  Outputs are PIND4 and PIND5 and the input is PINA3, but the two servo motors turn only in 1 direction.  #ifndef F_CPU  #define F_CPU 1000000UL   #endif  #include &lt;avr/io.h&gt; #include &lt;util/delay.h&gt; #include &lt;avr/interrupt.h&gt;   int main(void) { DDRD= 0xFF ; DDRA=0x00; PORTA =0x00; // FAST PWM TCCR1A |= 1&lt;&lt;COM1A0 | 1&lt;&lt;COM1A1 | 1&lt;&lt;WGM11 |1&lt;&lt;COM1B0|1&lt;&lt;COM1B1 ; TCCR1B= 1&lt;&lt;WGM12|1&lt;&lt;WGM13 ; ICR1 = 19999 ;  TCCR1B |=1&lt;&lt;CS10 ; while (1) {    if(PORTA==0x08) //if pina3 is 1    {     OCR1A = ICR1 -2000 ;   //turn servo 1     _delay_ms(1000);          OCR1B=ICR1-2000;    //turn servo 2     _delay_ms(1000);     }     if(PORTA==0x00)// if pina3 is 0     {       OCR1A = ICR1 -900 ; //turn servo 1 in the other direction       _delay_ms(1000);               OCR1B=ICR1-900;     //turn servo 2 in the other direction       _delay_ms(1000);      } }       return 0 ;  } MacBook Pro: How to disable discrete GPU permanently from EFI? How to get a dock on multiple monitors I have two monitors, but only one dock, which is somewhat annoying, so my question is, how do I get multiple docks? (One on each screen) I have a site which is only for US/Canada/UK visitors. I don't want to make it visible to other visitors.  I tried to put IP ranges in .htaccess (Deny IP) but it does not work for me. May be I have inaccurate IP lists or I am doing something wrong. Before the seasonal flu vaccine was recommended for all healthy adults, people in developed countries might get vaccinated against on the order of 10 different pathogens and develop immunity for some more via natural exposure.  Now the same person is expected to take a seasonal flu vaccine for a new strain every year - won't this put them in an uncharted territory as far as effects on the immune systems are concerned within a couple of decades? The Lie algebra of $SL_n(\mathbb C)$ are the matrices where the trace is $0$. But what is the Lie algebra of $SL_n(\mathbb H)$ where $\mathbb H$ is the quaternions?