The purpose is to send file from A to B just by putting the password in a shell script. in the long run i would like to do automaticly send file from A to B every 30 minutes.  I would prefer to avoid to act on firewall issues and simply put the password in the shell script
I know it is not recommended, but is it at all possible to pass the user's password to scp?  I'd like to copy a file via scp as part of a batch job and the receiving server does, of course, need a password and, no, I cannot easily change that to key-based authentication.
If I have a dataset with a very rare positive class, and I down-sample the negative class, then perform a logistic regression, do I need to adjust the regression coefficients to reflect the fact that I changed the prevalence of the positive class?  For example, let's say I have a dataset with 4 variables: Y, A, B and C.  Y, A, and B are binary, C is continuous.  For 11,100 observations Y=0, and for 900 Y=1:  set.seed(42) n &lt;- 12000 r &lt;- 1/12 A &lt;- sample(0:1, n, replace=TRUE) B &lt;- sample(0:1, n, replace=TRUE) C &lt;- rnorm(n) Y &lt;- ifelse(10 * A + 0.5 * B + 5 * C + rnorm(n)/10 &gt; -5, 0, 1)   I fit a logistic regression to predict Y, given A, B and C.   dat1 &lt;- data.frame(Y, A, B, C) mod1 &lt;- glm(Y~., dat1, family=binomial)   However, to save time I could remove 10,200 non-Y observations, giving 900 Y=0, and 900 Y=1:  require('caret') dat2 &lt;- downSample(data.frame(A, B, C), factor(Y), list=FALSE) mod2 &lt;- glm(Class~., dat2, family=binomial)   The regression coefficients from the 2 models look very similar:  &gt; coef(summary(mod1))               Estimate Std. Error   z value     Pr(&gt;|z|) (Intercept) -127.67782  20.619858 -6.191983 5.941186e-10 A           -257.20668  41.650386 -6.175373 6.600728e-10 B            -13.20966   2.231606 -5.919353 3.232109e-09 C           -127.73597  20.630541 -6.191596 5.955818e-10 &gt; coef(summary(mod2))               Estimate  Std. Error     z value    Pr(&gt;|z|) (Intercept) -167.90178   59.126511 -2.83970391 0.004515542 A           -246.59975 4059.733845 -0.06074284 0.951564016 B            -16.93093    5.861286 -2.88860377 0.003869563 C           -170.18735   59.516021 -2.85952165 0.004242805   Which leads me to believe that the down-sampling did not affect the coefficients.  However, this is a single, contrived example, and I'd rather know for sure. For which $n$ does $\frac{1}{a}+\frac{1}{b}+\frac{1}{c}=\frac{1}{a+b+c}$ imply $\frac{1}{a^n}+\frac{1}{b^n}+\frac{1}{c^n}=\frac{1}{a^n+b^n+c^n}$ I'm having trouble finishing a problem on an old national competition.  As the title states, the question says asks:  Given $a,b,c \neq 0,a+b=c$ such that $\frac{1}{a}+\frac{1}{b}+\frac{1}{c}=\frac{1}{a+b+c}$,  Find all integers $n$ such that $\frac{1}{a^n}+\frac{1}{b^n}+\frac{1}{c^n}=\frac{1}{a^n+b^n+c^n}$.  I know that if it is true for $n$, it is also true for $-n$ since $(a^n+b^n+c^n)(\frac{1}{a^n+b^n+c^n})=1$ and $(a^n+b^n+c^n)(\frac{1}{a^n}+\frac{1}{b^n}+\frac{1}{c^n})=1$ and the statment follows for $-n$ given that we can make the substitution for $n$. Thus I found out that $n=-1$ satisfies the equality.  I also know that it fails for all even $n$. If $n$ were even, $(a^n,b^n,c^n)$ would all be positive, and Titu's Lemma asserts that $\frac{1}{a^n}+\frac{1}{b^n}+\frac{1}{c^n}\geq \frac{9}{a^n+b^n+c^n}$. Thus $n$ must be odd.  I also observed that $(2,-1,1)$ was a solution, and from here noted that this particular solution satisfies all odd $n$.  I have been trying to prove that all other solutions satisfy all odd $n$ with no success.  Any help would be greatly appreciated. Thanks! I'd like to install both Ubuntu 12.04 and Windows XP on a Dell laptop, and I was thinking about using a dual boot structure, and using the bulk of my hard drive as empty hard drive space to share files between the two operating systems (so choice of file system type is very important in this set-up).     The kind of partitioning structure I would like to use is  Partition 1 - Ubuntu 12.04 (root) (20GB)  Partition 2 - Ubuntu /home        (20GB)  Partition 3 : Free Space          (560GB)  Partition 4 : Windows XP          (35GB)  Partition 5 : SWAP                (3GB)  (Total Hardrive Capacity is ~640GB)    My question is; what is the best way to go about setting up this kind this system?   Should I install Windows XP first and setup the partitions, and then install Ubuntu which I believe will install the GRUB bootloader for OS booting choice   or   Do I install Ubuntu first, setting up the available partitions and then perform a WIndows install?  Please let me know if there is anything in this setup that I have left out and should know about, including things related to setting particular partitions as logical or primary, and whether the boot partition and the filesystem partition should actually be two separate partitions. Consider this:  \documentclass{article} \usepackage[framemethod=TikZ]{mdframed}  \begin{document} \begin{mdframed}[innerrightmargin=0pt] TEXT\end{mdframed} \end{document}   This produces a frame that is much wider than its content:    I know this is not a bug: the mdframed documentation mentions a userdefinedwidth parameter that defaults to \linewidth. But how can I get a mdframed frame that has the same width as its content?   (What I actually need is a box with rounded corners and shading options; breaking over multiple pages isn't necessary. mdframed seemed like the easiest way to get the box, but if it's too much hassle to make it size to content, it would be useful to know so I can try pure tikz.) I miss those pins I make in Windows.     How can I do the same in Ubuntu 17.10 with GNOME 3? Why are floating point numbers inaccurate? Why would you put Identity Increment other than 1 in SQL? I know that this question is a bit old or maybe overdone, but I'm running the latest edition of Blender and when I use the Cycles engine I get really fuzzy results and I can't find a simple, non-compromising solution to the quality.  I don't know exactly what I'm doing wrong here, but I'm sure others share my frustration.  Leaving everything in default settings, I started a new project and switched to the Cycles render.  I duplicated the cube and set colors for two Diffuse BSDF shaders, then went ahead and made walls and a floor all sharing the same diffuse shader.  I made two windows to emit blue light.  The screenshot has gaps between the walls because of the setup:  I'm aware that it's considered very incomplete and many have come to terms with some amount of noise, but is this normal?  Furthermore, with default settings or not, I can't change the amount of noise produced.  Supposedly, using "progressively refine" in the rendering tab should make it refine itself indefinitely, however Cycles only counts to 10 refines and then stops, creating a render which is a pixel-perfect match of the ordinary rendering method when it's completed.  I understand that there are tricks that can be used to reduce noise, but at the cost of extra processing time and usually small quality conflicts, like blurring.  My question essentially boils down to is this Cycles' current limit? Antisymmetric Relations Why does the aorta spray blood when atmospheric pressure is higher than blood pressure? Young boy living on Mars discovers that his parents are robots I have a table:  table votes (     id,     user,     email,     address,     primary key(id), );   Now I want to make the columns user, email, address unique (together).  How do I do this in MySql?  Of course the example is just... an example. So please don't worry about the semantics. If $f(xy)=f(x)f(y)$ then show that $f(x) = x^t$ for some t How to get Text to follow semicircular path, read left to right and oriented counterclockwise I'm using adobe illustrator, and I'm trying to get the text to orient from left to right(counterclockwise) and not upside down but I cannot get it to do that on the path I've created. Im pretty beginner with illustrator, any help would be greatly appreciated. thank you Multiplexing UART I'd like to interface my main microcontroller's hardware serial port to more than one device at the same time. My understanding is that UART on my microcontrollers is based on an active-low 5V TTL.  (I know what I'm explaining here can be technically achieved by using more suited protocols, such as SPI and I2C, but my project requires to be only implemented using UART.)  Here's a pseudo-schematics chart of what I'm trying to achieve:         &ndash; Schematic created using   Please note that:   I don't want to use a second UART interface on the master, or any of the slaves. Only one slave at a time is going to transmit or send data on the line to the master. (e.g. If the slave 1 is transmitting data, slave 2 and 3 should remain idle.) Whatever the master is transmitting can, and should be received by all of the slaves. All of the slaves should be hot-pluggable, meaning they could be removed or inserted at any time. The RX and TX wires to the master are parallel between each slave, so no daisy chaining.   So, my questions are as follows:   Assuming the correct impedance is considered, I shouldn't need an additional circuit to transmit data from the master's TX line to any of the slave's RX line simultaneously. Is this correct? I understand that without current limiting resistors between slaves' TX line and the master's RX line, if any of the devices begin to broadcast data, the line between the devices will short circuit and I risk damaging them. Is this correct? Assuming the items 1 and 2 are correct:  a) Would just some current limiting resistors be enough to use?  b) Can I use 74-series logic gates instead of resistors? Between options a and b above, what route should I choose? For a reliable 115200 baud rate connection, will the switching frequency of a 74HC08 AND gate suffice to be incorporated?   EDIT: I'm well aware of other well-suited protocols such as SPI and I2C. There's a reason I'm using UART, and that's because the optiboot bootloader that is used on the master's mcu communicates over UART, albeit UART's obvious limitations.  Also, while daisy-chaining is definitely a clever approach, due to breaking the 4th requirement, it also breaks bootloader functionality.  The devices could also be USB-to-Serial chips, and using SPI-to-USB or I2C-to-USB would not be feasible in this project.  So, I'd appreciate if you could focus on the 6 questions listed here instead, and share your UART knowledge. Terence Tao, Analysis I, Ex. 5.5.2: Entry point needed Is floating point math broken? Converting a .lasd (Lidar) coordinate system? How can one change a coordinate system for a .lasd (Lidar) dataset?  The file is currently in UTM_Zone_15N and I am trying to convert it to IL_East. Word to describe the fear of unknown future Can I open a US bank account even if I don't live in the country?