I know these questions might have been asked somewhere but their solutions don't really work. I need help. I want to add a variable to a directory name then change directory to it. The approach below did not work for me. #!/bin/bash targetVmwareVersion=&quot;15.5.6&quot; cd vmware-host-modules-workstation-$targetVmwareVersion  If I replace cd with ls, it lists contents of the folder on the terminal but the cd does not work. I want the targetVmwareVersion to be concatenated after the name vmware-host-modules-workstation- then change directory. I have tried the approach below but it didn't work. #!/bin/bash targetVmwareVersion=&quot;15.5.6&quot; path=&quot;vmware-host-modules-workstation-$targetVmwareVersion&quot; cd $path  The cd part does not work. The directory does not change. . ./script does not work for me. The snippet above is part of my large script which depends on that snippet to proceed.
I want to run a script to simply change the current working directory:  #!/bin/bash cd web/www/project   But, after I run it, the current pwd remains unchanged! How can I do that?
How can I explain to a non-native why the plural of a noun isn't used adjectivally? How can I explain to a non-native speaker that while this is correct:     The felling of trees.    And this is also correct:     tree felling   This is not:     *trees felling   To a non-native it seems very reasonable that since many trees are being felled and given that the felling of trees uses the plural, the inverse form would also use the plural and become trees felling.  To a native speaker such as myself, the latter is very obviously wrong, but I couldn't figure out how to formalize this into a rule that a non-native can understand. I want to exclude certain local folders with Google Drive but I *keep* them on the computer Using Google Drive on Windows (although I think the same question applies to OS/X) I want to exclude certain local folders but keep them on the computer.  When I go to Drive preferences and deselect specific folders, it wants to remove them from the local PC and keep them only in the cloud.  This doesn't work for me.  I feel like I could do this in earlier versions of the Google Drive client but I cannot recall for sure.  Is this possible? Functional Equation: Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ such that $(x+y)(f(x)-f(y))=(x-y)f(x+y)$ Why is the plural of "basis" "bases" and not "baseis"? Looking at the , it indicates that the plural is either bases or baseis.  It looks like the rare  comes from the Greek, but the common  just refers back to basis and that does not explain the plural etymology.  Is there a standard rule at work here, or is this just an exceptional case that arose over time by convention? Creating a Snapshot of a Windows 7 System Is there a way to create a snapshot of a Windows 7 system?  My goal is to be able to save the current state of my Windows 7 OS, on external storage, and be able to restore it on the same hardware in the future. Much like a snapshot on a virtual machine.   One solution would be to install two hard drives in RAID 1, then take one of them out an store it. Is there an easier solution? I'm searching how to remove the chapter+section number on the theorem numbering with a section counter.  With no section counter it's like:  \newtheorem{thm}{Title} Chapter1 ----Section 1 --------thm 1 --------thm 2 ----Section 2 --------thm 3 --------thm 4 Chapter2 ----Section 1 --------thm 5 --------thm 6 ----Section 2 --------thm 7 --------thm 8   And with the section counter:  \newtheorem{thm}{Title}[section] Chapter 1 ----Section 1 --------thm 1.1.1 --------thm 1.1.2 ----Section 2 --------thm 1.2.1 --------thm 1.2.2 Chapter 2 ----Section 1 --------thm 2.1.1 --------thm 2.1.2 ----Section 2 --------thm 2.2.1 --------thm 2.2.2   And I want numbering my theorems like this:  \newtheorem???????? Chapter 1 ----Section 1 --------thm 1 --------thm 2 ----Section 2 --------thm 1 --------thm 2 Chapter 2 ----Section 1 --------thm 1 --------thm 2 ----Section 2 --------thm 1 --------thm 2   I know it's always a pain to remove such things, thanks for whoever will help me ^^ How can I get exactly 5 logarithmic divisions of an interval? Train passport control from London to Paris I'm a non-EU citizen, I will be travelling from London to Paris next month, so I was wondering since most countries track entry and leave dates, if I use the train to switch these countries and they don't control it, my UK visa will seem like entry YES but no leaving. Same for the Schengen, I wouldn't have an entry date but I'll be leaving,  Will it be trouble later? Are they controlling this on trains? If not is there anything I should do before? My wife wants a 4th baby, but I don't My wife wants a 4th baby, but I don't.  We have been talking about it for the last few days (talking strongly).   I have raised points such as:   We will get less time to spend with our current kids. The age gap between the first and the last will be too wide. It will cost more money. She will be out of work longer. We will need a bigger house. And we don't even have our own house yet (we are still renting). We will have to start again. Sleepless nights, nappies, feeding, new cot, car seat, etc etc.   She says:   She feels like she is missing something. She has always wanted a large family. Things will be the same regardless of having 3, or 4 kids. She agrees that money will be tighter, but wants to push through it.   Our current kids are 9 months, 2 years, and 4 years. We are young married couple (25), and I have a fairly decent job.  What would be the pros and cons of having another child?   How can we rationally talk to the other about having/or not having another child?  And what should we do if we cannot agree? How to do string formatting with placeholders in Java (like in Python)? I'm considering re-designing my personal website to promote my web services in my local area.  My issue is whether to do a one page website with a scroll-to navigation system. What effect does this have on SEO. As i understand it, you set stuff like h1's and meta description on specific page content. How does this work when all of your different content is on one page? Why do we use residuals to test the assumptions on errors in regression? Suppose that we have a model $Y_i = \beta_0 + \beta_1X_{i1} + \beta_2X_{i2} + \dots + \beta_kX_{ik} + \epsilon_i$.  Regression has a number of assumptions, such as that the errors $\epsilon_i$ should be normally distributed with mean zero and constant variance. I have been taught to check these assumptions using a normal QQ plot to test for normality of the residuals $e_i = Y_i - \hat{Y}_i$ and a residuals vs. fitted plot to check that the residuals vary around zero with constant variance.  However, these tests are all on the residuals, not the errors.  From what I understand, the errors are defined as the deviation of each observation from their 'true' mean value. So, we can write $\epsilon_i = Y_i - \mathbb{E}[Y_i]$. These errors cannot be observed by us. *  My question is this: how good of a job do the residuals do in mimicking the errors?   If the assumptions appear to be satisfied on the residuals, does this mean they are satisfied on the errors too? Are there other (better) ways to test the assumptions, like fitting the model to a testing dataset and getting the residuals from there?    * Furthermore, does this not require that the model is specified correctly? That is, that the response really does have a relationship with the predictors $X_1, X_2,$ etc. in the way specified by the model.  If we are missing some predictors (say, $X_{k+1}\ \text{to}\ X_p$), then the expectation $\mathbb{E}[Y_i] = \beta_0 + \beta_1X_{i1} + \beta_2X_{i2} + \dots + \beta_kX_{ik}$ would not even be the true mean, and further analysis on an incorrect model seems pointless.  How do we check whether the model is a correct one? If all the roots of a polynomial P(z) have negative real parts, prove that all the roots of P'(z) also have negative real parts I have a Samsung Galaxy S2, running the latest CM10.1.  I lost the app drawer icon on my Dock; I must have deleted it. The app drawer icon lets you go to the app list, and the widget list.  How do I get the app drawer icon back? The icon looks like a circle with 6 dots inside it. What are recommended, general strategies to start block-cipher design and/or analysis? I (and many others for that matter) have always been fascinated by the inner workings of the modern building block of cryptography: block ciphers.  Now, the ressources on the "black art" of design and analysis of these ciphers are sparse; especially for the entry level. Available information like  seems to be somewhat outdated (due to its age).  What's the general consensus of the “best” (read: recommended) strategy to start designing and/or analyzing modern cryptographical block ciphers?    Nota bene: Think of this as a general, wiki-alike question – for learning purposes only. (Besides that, this Q&amp;A would represent a place we can point people to when alike algorithm design questions arise.) Someone edited my message on StackOverflow, but it really bugs me out.  I'm not sure what's wrong with it:   As you see, the bigger the circle becomes, the more vertices I need for hiding the straight lines. As you see, the bigger the circle becomes, the more vertices I need to hide the straight lines.   The latter (corrected) sentence just bugs me out for some reason. It would sound better if there was a comma after the word "need", perhaps, but I guess that would be even worse in means of grammatical correctness.  Can someone explain why is the first sentence bad and the second sentence correct? And could there even be better solution to fix the first sentence? Volume of $T_n=\{x_i\ge0:x_1+\cdots+x_n\le1\}$ Let $T_n=\{x_i\ge0:x_1+\cdots+x_n\le1\}$. I know $T_n$ is tetrahedron.  My question: How can I compute the volume of $T_n$ for every $n$? Don't heavier objects actually fall faster because they exert their own gravity? Coloring arrows in \xymatrix Local colormaps in global coordinate system I am trying to get a surface graph with two colormaps.  Instead of using the full Z range i want to give the first surface its own colormap  and the second surface should receive its own colormap too (it may be even the same)... however the current version takes the full range of Z-Data and calculates the colormap. Is there any way?  \begin{tikzpicture}     \begin{axis}[grid = major, colormap={bw}{gray(0cm)=(0); gray(1cm)=(1)}, view={-30}{15}]   \addplot3[surf]    table     {DATA1.dat};   \addplot3[surf]    table     {DATA2.dat};  \end{axis} \end{tikzpicture}   Right now it looks like that:   I want each of the surface to be scaled individually... just to see more clearly how the amplitude changes :)  Any ideas?  Thanks, Alex