Why does a command not work as alias? Using the command directly works: $ find \ /home...  But not as alias: alias synclinks=&quot;find \        /home/foo/Pictures/ \        -type f -exec file --mime-type {} \+ | \        awk -F: '{if ($2 ~/image\//) print $1}' \        | xargs ln -t /home/foo/MyHardlinks&quot;  $ synclinks  Returns awk: cmd. line:1: {if ( ~/image\//) print } awk: cmd. line:1:       ^ syntax error ln: missing file operand Try 'ln --help' for more information. find: ‘file’ terminated by signal 13 find: ‘file’ terminated by signal 13 find: ‘file’ terminated by signal 13 find: ‘file’ terminated by signal 13
Escaping quotes in zsh alias Following on from  about stripping newlines out of text, I want to turn this into a zsh alias as follows:  alias striplines=' awk " /^$/ {print \"\n\"; } /./ {printf( \" %s \",$0);}"'   I've tried escaping the quotes inside the awk script, but I'm getting this error:  awk: (FILENAME=bspsrobustness FNR=1) fatal: division by zero attempted   (The file is called bspsrobustness)  Is there a way to do what I want? I suppose I could turn this into an awk script rather than a zsh alias, is that my best option?
More and more I see, especially in activist communities, Spanish-derived words ending in x or @ in order to neuter the gendering inherent in the original language. For example: latinx (or latin@) as opposed to latina and latino. How, though, are these endings pronounced? Please provide evidence of how this orthography is most commonly pronounced. Note 1: I recognize this is in an English Language site, rather than a Spanish language site, but this phenomenon is very much happening in English, albeit with Spanish loan words. Therefore the question is relevant to non-Spanish-speaking English speakers. Note 2: A question like this can lead to politically charged or, at least, sarcastic comments. Please refrain from bringing in your biases for or against. Note 3: This question is not seeking opinions as to how some people pronounce the suffixes. Answers should address evidence of a developing orthodoxy in pronunciation. "viruses" or "virii"? I have a solid understanding of most OOP theory but the one thing that confuses me a lot is virtual destructors. I thought that the destructor always gets called no matter what and for every object in the chain. When are you meant to make them virtual and why? UK coastline shapefile? Using crawl rules to exclude Allitems.aspx, DispForm.aspx Is anyone having any idea on how to exclude List Forms from Search result.  I tried lot many things suggested on google, but none of them seems to be working. Quantify Difference/Distance between Lognormal distributions I am trying to determine a metric that quantifies the distance between two continuous lognormal distributions. The data is actually a mixture of two lognormal distributions (I am not sure if this can be called bimodal). The individual distributions have different means but the same standard deviations. I have 20 data sets that can be divided into 4 groups, with each group having a constant standard deviation, but the 5 data sets in each group are made up of two distributions with different means. Some examples:      I am in search of a metric that accounts for the contrast (difference in means) and the standard deviation. I have tried out some parameters like coefficient of variation (of the mixture), Ashman's D etc. I have also tried percentage of overlap. However the problem always is that, at the end when plotted against the results I end up with 4 trend-lines again, corresponding to the 4 different standard deviations. Is there some other way I can quantify this?  Just to make myself clear, I want to quantify the difference between two distributions in a single case (between the red and green PDFs in the above image). Issue in evaluating the performance of my "clustering algorithm" using NMI, ARI when the "ground truth" is available? Resize partition without affecting other OSes in dual-boot I wanted to resize (increase or decrease the partition size) the existing Ubuntu partition without affecting it and the other OS(es) installed in the machine. How do I find the common ratio of a geometric sequence? A geometric sequence has its first term equal to $12$ and its fourth term equal to $-96$.   How do I find the common ratio? And find the sum of the first $14$ terms The gravitational force on your body, called your weight, pushes you down onto the floor. $$W=mg$$ So, what is the weight equation through general relativity? Remove "Set as desktop background" from Windows context menu I recently had somebody tell me that a mutual friend of ours who is  prefers that people refer to him/her using the gender-indefinite pronoun they.   In some cases, this almost seems okay:   Kris left their umbrella at our house.  On the other hand, if Kris is sitting right next to you, it feels very odd to say       They (meaning just Kris) would like more cake.   Or even odder,      Kris would like some more cake, can you please pass it to they/them?"   Are these usages grammatically correct? Are they in the process of becoming grammatically correct? Are there more correct alternatives? I have the following sequences $(a_n)$, $(b_n)=(a_{2n})$, and $(c_n) = (a_{2n-1})$.  I have to show that:   if $(b_n)$ and $(c_n)$ both convergence to $a$, then $(a_n)$ also converges to $a$; if $(a_n)$ converges then $(b_n)$ and $(c_n)$ also converge; there exist $(a_n)$ not converging but with $(b_n)$ and $(c_n)$ converging.   I am not sure how to solve this since I only know that $(b_n)$ > $(c_n)$ > $(a_n)$ on the terms how the sequences are defined. "I saw him crossing" vs. "I saw him cross" I saw him crossing the road.   I saw him cross the road.   Which one is correct and why? A friend sent a long a file (a .rar) he wanted me to check out for him before he installed it.  I downloaded it and unrared it with no problems, but it was full of .exe's instead of the intended contents (fonts) so I advised him to delete it immediately and not use.  I then proceeded to do the same, but the folder simply will not delete. Oddly the files went fine, and I never ran anything, but this is what I'm seeing:   Could not find this item  This is no longer located in C:\Users\This_User\Desktop. verify the item's location and try again.   I've tried the following things with no help:   Using "Unlocker" to Unlock and delete Using move on reboot and rebooting Using PendMoves (from sysinternals) and rebooting Elevating a cmd line, doing a dir /x to get the short name of the folder, and then del 'shortna~1' Moving the folder to a new folder and then trying to delete the parent folder   I'm on Windows 7 RTM, very fresh install. Any thoughts?  Update: Just to confirm, I've run Hijack this and half a dozen other malware detectors, and everything came back clean (no extra processes, no other obvious badness). Rebooting in safe mode didn't help either. I've been trying to prove   $$\sum_{k=1}^{n}{(-1)^{k+1} {{n}\choose{k}}\frac{1}{k}=H_n}$$  I've tried perturbation and inversion but still nothing. I've even tried expanding the sum to try and find some pattern that could relate this to the harmonic series but this just seems surreal. I can't find any logical reasoning behind this identity. I don't understand . Is there any proof that doesn't require the integral transform? Gradient descent and many other methods are useful for finding local minima in cost functions. They can be efficient when the cost function can be evaluated quickly at each point, whether numerically or analytically.    I have what appears to me to be an unusual situation. Each evaluation of my cost function is expensive. I am attempting to find a set of parameters that minimize a 3D surface against ground truth surfaces. Whenever I change a parameter, I need to run the algorithm against the entire sample cohort to measure its effect.  In order to calculate a gradient, I need to change all 15 parameters independently, meaning I have to regenerate all the surfaces and compare against the sample cohort way too many times per gradient, and definitely way too many times over the course of optimization.  I have developed a method to circumvent this problem and am currently evaluating it, but I am surprised that I have not found much in the literature regarding expensive cost function evaluations.  This makes me wonder if I am making the problem harder than it is and that there might be a better way already available.  So my questions are basically this: Does anyone know of methods for optimizing cost functions, convex or not, when evaluation is slow?  Or, am I doing something silly in the first place by rerunning the algorithm and comparing against the sample cohort so many times? Should I always use a comma after "e.g." or "i.e."? It seems that "e.g." is always followed by a comma but "i.e." is not. Why is that? Which kind of pointer do I use when? Number of normal subgroups of a non abelian group of order $21$... CSIR December $2013$ Question is to :  Find the number of Normal subgroups of a nonabelian group $G$ of order $21$ other than $\{e\}$ and $G$.  What I have done so far is :  As $|G|=21=3\cdot7$  we have :  No. of sylow $3$ subgroups $1+3k$ dividing $7$ leaving out possibilities $1$ or $7$  No. of sylow $7$ subgroups $1+7k$ dividing $3$ leaving out only possibilities $1$.  So, we have a unique sylow $7$ subgroup and so it is normal.  I remember somehow that any normal group should come from a normal sylow subgroup or something like that.  S0, I prefer to conclude there is only one Normal subgroup for a non abelian group of order $21$.  Please let me know if this is true and please help me to fill that gap :      I remember somehow that any normal group should come from a normal sylow subgroup or something like that.   Thank you.