How can I build a dynamic parameter list for mailx command in bash linux?
build argument lists containing whitespace
I am running vsftpd as ftp server on my linux (rasbian), I log in to the machine as a root user.  I would like to be still locked to using only /var/www, how can I configure vsftpd conf to accomplish it? What are the differences between a HashMap and a Hashtable in Java? What are the differences between a  and a  in Java?  Which is more efficient for non-threaded applications? "As part of" versus "as a part of" Changing precision on a column in the attribute table without losing data? I have data in an Excel file that I want to join with a shapefile in my project. The Excel file contains values like volumes. The Excel file and the shapefile I want to join it with both contain the same property names.  The problem is, when I join the two, I get too many decimals in the attribute table. I get six, but I only want it to be one.  I tested to change the format of the cells to one decimal, and then I saved the file as *csv. But, somehow I seem to loose data in the process? It should be 42 rows that contains data in the column i am working with, but I end up with only like 10?  Another thing is that my property names contains the letters Å. Ä and Ö, perhaps this complicates things?  I read the question , but it doesn't mention the problem with the data loss.  My question was tagged with , but I didn't write what version I'm using. I use QGIS 2.2.0. Would it help to upgrade to the latest version? Efficient way to check collision with potentially hundreds of objects I am trying to make a top down shooter that could potentially have hundreds of objects at once at one point. I need to check collision with projectiles, walls, and enemies. I am currently using ArrayLists which probably won't suffice later on and was wondering if someone had a good method or knows a good method for checking all of those objects at once. This is going to be a game for smartphones and is built in java. Any ideas would be great or if you could point me in some direction that would be fantastic.  Thanks in advance! How do I convert Word smart quotes and em dashes in a string? What is a good general document size for web page mockups and prototypes? I do mockups and prototypes of sites and designs all the time, but I've always wondered if there is a standard size or width I should be using. Generally I'll make my document either 1024, 1200, or 2560px wide, depending on what I'm doing.  So what do you think? What is a good or standard size for this? Validation Error less than training error? I found two questions  and  about this issue but there is no obvious answer or explanation yet.I enforce the same problem where the validation error is less than training error in my Convolution Neural Network. What does that mean? What's the added value of SD line over regression line when examining association between 2 variables? I'm trying to incorporate different practices to use when exploring a new data set. Especially, how to examine the association between two variables.  Steps for example (not necessarily by order):   plot a y-by-x scatter plot of the raw data to see the relationship visually. compute summary statistics for each variable (mean and sd) compute correlation coefficient r draw the OLS regression line, compute its slope and intercept etc....   I've come across the "SD line" in Freedman's Statistics book, which is defined as:     "the line that goes through the point of averages and climbs at the rate of one vertical SD for each horizontal SD" Freedman, D., Pisani, R., &amp; Purves, R. (2007). Statistics (4th edn).   Since this book ("Statistics") is a canonical textbook, I consider its choice to discuss the SD line as an indication for the line's importance. However, a simple google search for the term "SD line" doesn't yield as many independent results. Most of them come directly from Freedman's book. This tells me it's not a central concept in bivariate analyses in general.  When comparing the SD with the OLS regression line, it seems like the regression line is more informative (than the SD line) for predicting y from x. Therefore, I'm wondering if bothering to plot the SD line has any benefit or added value that I would not already have when plotting the regression line.  Example using mtcars dataset, focusing on association between weight and mpg  data(mtcars)  ## calculate means mean_wt &lt;- mean(mtcars$wt) mean_mpg &lt;- mean(mtcars$mpg)  ## calculate standard deviations sd_wt &lt;- sd(mtcars$wt) sd_mpg &lt;- sd(mtcars$mpg)  ## scatter plot plot(x = mtcars$wt, y = mtcars$mpg)  ## add the "point of averages" points(mean_wt, mean_mpg, col = "red", cex = 1.5, pch = 16)  ## calculate the slope of the sd line slope &lt;- -1*sd_mpg/sd_wt  ## plot the sd line curve(expr = x*slope + (mean_mpg - slope*mean_wt), add = TRUE, col = 'blue', lwd = 2, type = "l", lty = 2)  ## plot the regression line model &lt;- lm(mpg ~ wt, data = mtcars) abline(model, col = "orange", lwd = 2)  ## legend legend("topright",        legend = c("Regression line", "SD line"),        col = c("orange", "blue"),        lty = c(1, 2),        lwd = c(2, 2))     Thus, my question: how can the SD line increase one's understanding about the relationship between two variables, in a way that's either adding or complementing on what the regression line already tells? Why do diamonds shine? I have always wondered why diamonds shine. Can anyone tell me why? Can a Dungeons and Dragons 4e character take D&D Essentials feats? In Heroes of the Fallen Lands many of the core feats have been streamlined, some paragon feats have become available to all levels.  Before that feats were tiered by level: heroic, paragon, epic.  Can a character that was made before the Heroes of the Fallen Lands publication use Heroes of the Fallen Lands feats? I want to show that for $\gcd(a,b) = 1$ $a,b \in Z$   $\gcd(a+b, a-b) = 1$ or $\gcd(a+b, a-b) = 2$ holds.      I think the first step should look something like this:      $d = \gcd(a+b, a-b) = \gcd(2a, a-b)$   From here I tried to proceed with two cases. 1: $a-b$ is even, which leads to $\gcd(a+b, a-b) = 2$ 2: $a-b$ is odd, which leads to $\gcd(a+b, a-b) = 1$  My main problem I think is, that I do not know how I should include $\gcd(a,b) = 1$ in the proof.  Any help is appreciated. Thx in advance. Cherio Woltan Changing subject and verb positions in statements and questions We always change subject and verb positions in whenever we want to ask a question such as "What is your name?". But when it comes to statements like the following, which form is correct?        I don't understand what are you talking about.   I don't understand what you are talking about.      Another example        Do you know what time is it?   Do you know what time it is?      Another example        Do you care how do I feel about this?   Do you care how I feel about this? Can "firstly" be used in the same meaning as "at first/initially"? I've come across many sources claiming that the words firstly and first (as an adverb) can be used interchangeably. They, however, only seemed to be comparing their meanings with regard to enumerations - first(ly) I want to say ..., second(ly) ..., last(ly) ...  What bothers me more is if the word firstly is also usable within the meaning of at first or initially like in the sentence:     Muons (subatomic particles) were firstly observed in cosmic rays.   The word first fits there very well, but is that the case for firstly too? I have not found a dictionary definition or example saying so. Generating ordered combination of numbers I can form numbers with only 0,2,4,6,8.  The sequence is as follows  0,2,4,6,8,20,22,24,26,28,40,42,.....  How to generate an ordered sequence of numbers from combinations of 0,2,4,6,8. When using vagrant Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX) I am trying to install open edx with  ubunty 16.04 and I get this error  There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below.  Command: ["startvm", "c60f0594-d584-4e0b-b863-2801168e641e", "--type", "headless"]  Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole   this occurs when using vagrant up Once upon a time,  DISPLAY=:0.0 totem /path/to/movie.avi   after ssh 'ing into my desktop from my laptop would cause totem to play movie.avi on my desktop.  Now it gives the error:   No protocol specified Cannot open display:    I reinstalled Debian squeeze when it went stable on both computers, and I guess I broke the config.   I've googled on this, and cannot for the life of me figure out what I'm supposed to be doing.   (VLC has an HTTP interface that works, but it isn't as convenient as ssh.)  The same problem arises when I try to run this from a cron job. java.lang.RuntimeException Cannot find FacesContext How many integers between $1$ and $10^4$ contain exactly one $8$ and one $9$? I have this problem: How many integers between $1$ and $10^4$ contain exactly one $8$ and one $9$?, but i dont know if $18, 19, 28, 29...$ serve, else it could be $8$ y $9 = 2$ numbers, help please. Google Analytics configuration setting for Drupal multisite (domain and submain) I am working on a Drupal mulsite project (using single database) and using Google Analytics module for this.  I have follow the below steps for GA configuration:   Created a domain name example1.com and a sub-domain name example2.com. Create an account on GA and create property for both of this domain name in GA account. Both property give me two different Tracking ID (same as below screenshot).      Into the configuration setting of GA from drupal admin section I have added Web Property ID of example1.com and into domain setting added both the domain name example1.com and example2.com into the section of List of top-level domains (a same as attached screenshot).      Now this configuration is only working for emample1.com, not for example2.com. So can anyone please tell me how can I use Web Property ID of domain exmaple2.php to get the result?