How can I send a zip file (~600MB) to an email account? What is the command line should be used in bash?  What if I want to FTP the files to a server automatically?
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.
Is there a name for this database schema of key values? What is an uninterruptible process? Sometimes whenever I write a program in Linux and it crashes due to a bug of some sort, it will become an uninterruptible process and continue running forever until I restart my computer (even if I log out).  My questions are:   What causes a process to become uninterruptible? How do I stop that from happening? This is probably a dumb question, but is there any way to interrupt it without restarting my computer? How to batch watermark JPG files? I have around 15,000 JPG files that need to be watermarked. Is there any way to process these images en masse and add a watermark?  The images may be different sizes, I want the watermark placed in the center of the images. Basically, I want to turn a continuous "1" into a short "1" pulse then "0". I'm new to logic gates, apologies if it's too obvious. Novel about interstellar war: Both sides win, both sides think they lost Alias and functions From the bash manual     The rules concerning the definition and use of aliases are somewhat   confusing. Bash always reads at least one complete line of input   before executing any of the commands on that line. Aliases are   expanded when a command is read, not when it is executed. Therefore,   an alias definition appearing on the same line as another command does   not take effect until the next line of input is read. The commands   following the alias definition on that line are not affected by the   new alias. This behavior is also an issue when functions are executed.   Aliases are expanded when a function definition is read, not when the function is executed, because a function definition is itself a   compound command. As a consequence,   aliases defined in a function are not available until after that function is executed. To be safe, always put alias definitions on a   separate line, and do not use alias in compound commands.   The two sentences "Aliases are expanded when a function definition is read, not when the function is executed" and "aliases defined in a function are not available until after that function is executed" seem to be contrary to each other.  Can you explain what they mean respectively? Publishing a review in a peer-reviewed Wiki vs a traditional journal? The topic of Wikipedia contribution has come up before, but I am interested in the community's opinion on peer-reviewed wiki publishing (e.g., Scholarpedia). I would like to know if there is any advantage for a PhD student to publish in such an online venue versus the traditional journal publication for review content. The advantages I see to the wiki approach is free of charge publication, open access for all, not necessarily being limited by character limits. However, the disadvantages I see could be the citation being completely ignored by the intended audience and therefore missing out on the benefits of scientific communication and the possible loss of accompanying reputation for the publication. I would also worry these publications would be ignored or minimized by future supervisors and review committees. Let $f(x)$ be a monotone non-increasing function such that $\int_{0}^{\infty}f(x) dx$ converges. Prove: $\lim\limits_{x \to \infty} xf(x)=0$. My question is, why can't I simply contradict any other possibility by using the Integral Limit Comparison Test with $1\over x$? I am, after all, to show that $f(x)=o(x)$ as $x\to \infty$. I really don't understand why monotony is crucial here. I could use some help. With regards to  post about  and the part about retaining reputation earned from deleted posts that have a score of 3 or better and were visible on the site for 60 days, does this also apply to self-deleted posts and will it continue to do so? I culled a few of my own answers over the weekend that were less than stellar, and my reputation dropped 1.8k, but the rep is back today after the changes were announced. I thought it would be useful to clarify that this also applies to self-deleted stuff. So the question is really hard I think. I tried using a simple way by calculating the probability of each combination that makes a sum divisible by six, but it would take forever. Does anyone have any ideas?  Suppose that we roll a six-sided die ten times. What is the probability that the total of all ten rolls is divisible by six? I love recursion. I think it simplifies things a lot. Another may disagree; I think it also makes the code a lot easier to read. However, I've noticed that recursion is not used as much in languages such C# as they are in LISP (which by the way is my favorite language because of the recursion).   Does anybody know if there is any good reasons not use recursion in the languages such as C#? Is it more expensive than iteration? I am trying to show that $a^{12} \equiv 1 \mod 32760$ for each $a \in \mathbb{Z}$ coprime to $32760$. I have found the prime decomposition $32760 = 2^3 \cdot 3^3 \cdot 5 \cdot 7 \cdot 13$ and determined $\phi(32760)$, where $\phi$ is the Euler's totient function. This gives me that $\phi (32760) = 8640$.   Using Euler's congruence, this gives that $a^{8640} \equiv 1 \mod 32760$, but this is still far from the result I want to show... I also know a consequence of Eulers congruence, which states that $e \equiv e' \mod \phi (n)$ implies that $a^e \equiv a^{e'} \mod n$, but I do not see how to use this...  Any hints would be appreciated.  $\textbf{EDIT:}$ I made a mistake in my primefactorization, it is edited now. Labelled in-line equation How do Southern people discern Night's Watch deserters from truthful brothers sent south? Night's Watch deserters are sentenced to death, as we've seen in the very first episode of Game of Thrones. A man dressed all in black is apprehended by Stark men and brought before Lord Eddard Stark. Lord Stark sees him as a deserter and sentences him to die (and then executes that death penalty).  However, there are men of the Night's Watch south of the Wall, on a legitimate mission or on some kind of allowed leave. For instance, we have Benjen Stark visiting Winterfell when the king and his party is there. There is also Yoren, who travels around Westeros in search of new recruits.  I could imagine that the Warden of the North (and other lords in the northern part of Westeros) would have a good idea of who would be allowed further south and whose appearance would raise suspicion. But I reckon the southern lords don't have as many visits from the Night's Watch, so they might not know who would be allowed to be there and who wouldn't.  How would lords who are rather unfamiliar with the specific brothers of the Night's Watch discern deserters from brothers sent out for some reason?  That ends my question, but there is a spoiler from the season 5 finale that continues the question a bit more:      Sam is sent to Oldtown to become a Maester, so he can replace Maester Aemon at Castle Black.  But he is riding together with Gilly (a woman!) and her baby (a baby!), which might raise a lot of suspicion from people who don't know what he is sent out to do.  What prevents southern lords of sentencing Sam as a deserter from the Night's Watch? I'm a teacher and I teach at/in school OR at/in a school There are a lot of posts on this topic, but I can't find any answers to my question.  I came across the following two definitions of 'school':        [uncountable] (used without the or a) the process of learning in a   school; the time during your life when you go to a school (British   English)   [uncountable] (used without the or a) the time during the day when   children are working in a school      Source:   I know there are better ways to convey the message, but which sentence would a teacher utter if he was a school teacher teaching students, adults, etc.? What about a janitor, director, and secretary?     I teach at/in school OR I teach at/in a school   The above definitions concern students, and not working individuals like teachers or janitors.  I would appreciate if you also stated whether you're American, Canadian, British, etc. How can I play mp3 files or videos? Setting "checked" for a checkbox with jQuery I'd like to do something like this to tick a checkbox using jQuery:  $(".myCheckBox").checked(true);   or  $(".myCheckBox").selected(true);   Does such a thing exist? How do I install Waterfox? Light Presets .exr I would like to install light presets for Blender to automate my lightning in my scenes. I have some .exr files (from Greyscalegorilla) but I don't know how to do it on Blender to make it work. Can someone help me? Thank you Can I have a unique UV map for each frame?