Can't filter file extensions when the list is in a variable I guess this is a relative simple question, but I can't find the way to access the variable content when doing a git diff, so it lists all the files with specific extension. // This works fine git diff --name-only --cached --diff-filter=d *.{sln,csproj,vbproj,vcxprojfilters,proj,projitems,shproj,xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct,json,json5,webmanifest,yml,yaml,md,htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue,cmd,bat,sh,Makefile,cs,csx,cake,vb,vbx,cs,csx,cake,cs,csx,cake,vb,vb} MyProyect/Service/App/AppGridService.cs  // but this does not work // this is the variable content echo $FILE_EXTS sln,csproj,vbproj,vcxprojfilters,proj,projitems,shproj,xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct,json,json5,webmanifest,yml,yaml,md,htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue,cmd,bat,sh,Makefile,cs,csx,cake,vb,vbx,cs,csx,cake,cs,csx,cake,vb,vb // this is the command that shopuld give me the same result git diff --name-only --cached --diff-filter=d *.{$FILE_EXTS}  // returns empty, why??
Bash Brace Expansion & Variables I have a find command:  find Directory/{Alpha,Bravo,Charlie} arg1 arg2   I want to replace Alpha,Bravo,Charlie with $find_dir  find Directory/{$find_dir} arg1 arg2   however the latter expands to   find Directory/{Alpha,Bravo,Charlie} arg1 arg2   rather then   find Directory/Alpha Directory/Bravo Directory/Charlie arg1 arg2   Why? It's part of a fairly complex bash script that may have more or less directories, not all which are relevant (so globbing Upload/* would not work). So if I setup three now and add another, I'll have to manually add it in later. Plus I need it run from the root of directories to keep finds outputs perspective (./Upload/Dir/file as opposed to ./Dir/file).   But using a variable would permit me to change that as needed and keep it relevant to other parts of the script.
Why do we use "have" with does and not "has"? Objects with transparent texture not always show transparency in 3dview For some reason objects don't show their transparency all the time.  In this image the circles in red are suposed to be transparent like the ones in green.    When I select the object in the back, all objects in front of it become opaque.    When I select the two objects that are opaque, then they become transparent as they sould be.    The display is in GLSL mode  These are the material and texture properties      I'm not worried about the final render, just the editing view. I would like to see the actual transparency at editing time only, because the scene is to be imported in a third party game engine.  Blender is v2.68   is the blend file How to install a QGIS plugin when offline? Due to various IT policies at my workplace, QGIS is installed on a machine that is not connected to the internet. I wish to install a couple of QGIS plugins on this system.  I have downloaded the required plugins from . How do I install them in QGIS? What can I do when getting “This question body does not meet our quality standards”? This question was , but I think that the only answer didn't quite understand the question so I thought I'd try again. I'm writing a paper in which I need to have references show up in two places:  a special list of &quot;key references&quot; in its own section, and a bibliography containing the rest of the references that were cited in the text. I thought that bibentry would do it, so the document looks something like: \documentclass[11pt]{article} \usepackage{natbib} \usepackage{bibentry} \nobibliography*  \begin{document}  \section{Amazing idea}  Chicken chicken chicken \citep{chicken:2010fj}.  Chicken chicken, chicken \citep{turkey:2010jk}.  \section{Key References}  \begin{enumerate} \item \bibentry{lemur:2009ii} \item \bibentry{gibbon:2011jk} \end{enumerate}  \bibliographystyle{apalike} \bibliography{amazing.bib} \end{document}  Unfortunately, this doesn't quite do it, as the resulting document presents the lemur and gibbon bibentry references correctly in the &quot;Key References&quot; section, but also prints them in the bibliography at the end of the document.  Ideally, the only entries in the bibliography would be the chicken and turkey \citep references.  I'd like it to look like:  Key references  Lemur, L. (2009). Lemur, 12(4):1-7. Gibbon, G. (2011). Gibbon, 135:1002-1009.  References Chicken, C. (2010). Chicken. Chicken Press, Coop. Turkey, T. (2010). Turkey, 7(4):E231.  What it actually looks like:  Key references  Lemur, L. (2009). Lemur, 12(4):1-7. Gibbon, G. (2011). Gibbon, 135:1002-1009.  References Chicken, C. (2010). Chicken. Chicken Press, Coop. Gibbon, G. (2011). Gibbon, 135:1002-1009. Lemur, L. (2009). Lemur, 12(4):1-7. Turkey, T. (2010). Turkey, 7(4):E231.  Is there any way to achieve this with the current method, or is there some other (possibly easier!?) way to do this? Exercise 12 from SEC. 82 of Finite-Dimensional Vector Spaces - 2nd Edition by Paul R. Halmos.  If $A$ and $B$ are linear transformations on a finite-dimensional inner product space, and if $\textbf{0} \le A \leq B$, then $\det A \leq \det B$.  Notation: $0 \le A$ means that $A$ is positive.  If $\det B = 0$, choose $x \in \ker B$, then $0 \le ((B-A)x,x) = (Bx, x) - (Ax, x) = -(Ax, x) \le 0$. Therefore $\ker B \subseteq \ker A$ and $0 = det A \le det B = 0$. How to prove for the case when $B$ is invertible? Intuitively, I feel that since both $A$ and $B$ are positive their proper values are also positive and $B$'s proper values should be greater the $A$'s and same for determinants. Show that any set in a metric space can be written as the intersection of open sets Is there an analog to the Runge-Lenz vector for a 3D spherically symmetric harmonic potential? How to subtract a day from a date? I have a Python  object. What is the best way to subtract one day? We know that the addition and multiplication operators are both commutative, and the exponentiation operator is not.  My question is why.  As background there are plenty of mathematical schemes that can be used to define these operators. One of these is   where $H_0(a,b) = b+1$   (successor op) $H_1(a,b) = a+b$   (addition op) $H_2(a,b) = ab $   (multiplication op) $H_3(a,b) = a^b$   (exponentiation op) $H_4(a,b) = a\uparrow \uparrow b$   (tetration op: $a^{(a^{(...a)})}$ nested $b$ times ) etc.    Here it is not obvious to me why $H_1(a,b)=H_1(b,a)$ and $H_2(a,b)=H_2(b,a)$ but not $H_3(a,b)=H_3(b,a)$  Can anyone explain why this symmetry breaks, in a reasonably intuitive fashion?  Thanks. Collective term for data sizes (bytes, kilobytes, megabytes etc.) As you will probably work out from my profile, I'm a software developer. This is sort of a software development question, but I think this is more suited to English language too.  Feel free to migrate if you think the question does not belong here.  Say I want to refer to the data size, or capacity of something:   A floppy disk can hold 1.44 megabytes of data. My flash drive can hold 16 gigabytes of data. My internet connection can operate at a maximum of 50 gigabits per second I have just managed to compress a file from 1 megabyte to just 200 kilobytes.   How do I collectively refer to these units of data size/capacity? Is there any explanation for why the other 2 schools in the TriWizard tournament are both single-gender, unlike Hogwarts?  Was single-gender education normal in wizarding world with Hogwarts being the exception?  Was this some special intentional literary trick on Rowling's part or on movie creators'?    Here's the evidence from the movies:  Durmstrang Institute is boys-only:    Beauxbatons Academy of Magic seems to be an all-girl school: I was so good with windows, now I’m feeling like a complete idiot.  I have an SSD for ubuntu and want to install the majority of my programs to a separate HDD but I have no clue how. All searches I have tried only turn up with dual-boot installations.   (RESOLVED -> ) I am also having trouble locating "/etc/". Specifically, to modify Conky. Searching for this term only turns up instances where people are telling you to access this file, not how to get to it. Minimize the sum of distances between two point and a circle Let's $A$,$B$ and $O$ be random point in a plane, such that they are not colinear. Let's $c$ be a circle centered on $O$, such that points $A$ and $B$ are outside of it. Find a point $X$ that lies on the circle $c$ and the sum $AX + BX$ is minimal.  First I tried to minimize the function:  $$f(x,y) = \sqrt{(A.x - x)^2 + (A.y - y)^2} + \sqrt{(B.x - x)^2 + (B.y - y)^2}$$ with  constraint $$g(x,y) = x^2 + y^2 - r^2 = 0$$  By moving $O$ to $(0,0)$ and do the same with $A$,$B$ so the relative distance will not change.  But these works when we know the coordinates of $A$,$B$ and the radius of the circle. Yet this isn't the right way because the problem is to construct that point.  Later I tried to approach using geometry.  The smallest distance from the point $A$ to the circle is the intersection of the circle $c$ and the ray $OA$, this is the same for $B$. Then we construct circles centered on $A$ and $B$ that are tangent to $c$. If the two circle intersect we'll get a common point for the both $A$ and $B$ and the distance will be minimal. Using computer I find the point X should be somewhere around the intercetion of the circle $c$ and the ray from $O$ to the new point.   Sometimes the optimal point differs just a bit and also this method fails when the two circles do not intersect each other bash function cannot change the value of a local variable when called by $() The following code works differently depending on which way Parse_Short_Switches() is called.  After calling the function 'Parse_Short_Switches' by using result=$(Parse_Short_Switches), the value of $error_flag is NOT set to -1 as I would expect.  After calling the function 'Parse_Short_Switches' by simply using Parse_Short_Switches, the the value of $error_flag is set to -1 as I would expect.  Any help would be greatly appreciated.  Thanks  #!/bin/bash  function Parse_Short_Switches() { echo "error_flag inside of the function= $error_flag" 1&gt;&amp;2 error_flag="-1" echo "blah blah ..." }  # --- MAIN --- error_flag="999" echo "error_flag= $error_flag" #result=$(Parse_Short_Switches) Parse_Short_Switches echo "error_flag= $error_flag" Get variable from PHP to JavaScript Is there a reason to use multiple question marks instead of an asterisk in filename expansion? If I have a number of directories, named, for example 10001 through 10025 is there any reason to use ls 1*/foo vs. ls 100??/foo?  I have a lot more than 25 of them, so I mostly curious if there's any differences in speed.  I know the difference in use between the two, that the asterisk will match longer file names, like 10001.backup. But let's say I don't have any files that don't follow my conventions. Is there any behind-the-scenes differences? IOS 5.1.1 Safemode problem I jailbroke my old iPod Touch 3rd Generation, with IOS 5.1.1, using the latest version of absynthe. It worked for several months, but then it randomly stopped. It went into safe mode, but the touch screen wouldn't work. It showed the lockscreen, but nothing worked at all, except for the physical buttons. The only way to reboot is to follow the same steps as DFU mode (Hold power button 3 sec, then home button AND power for 10, then just home for 8)... However, it always boots right back into Safe mode.  I had to restore, and once rejailbroken, it worked fine, until I installed SBsettings. Then it did the EXACT same thing, and I had to restore and re-jailbreak AGAIN! The other day, I finished installing ALL of my extensive list of tweaks, and got it to about where I wanted it, when lo and behold, it booted to safe mode again. I have spent so much time on this, and I do not want to do it again. Does anybody here have any knowledge on the topic? Is there a program I can run from my computer to manually control the device or kick it out of safe mode? Is there some other method of doing this? I am looking for any solution OTHER than restoring. I have done that several times.  Also, I know the problem isn't with my jailbreak. It worked for several months before, then one day stopped. Now, it has the problem within a day of rejailbreaking, OR instantly if I install SBsettings. I re-installed the jailbreak, and applied the new one as well, and that didn't work. I have given up, and don't want to go through the painful process of restoring, rejailbreaking, and re-installing all of those tweaks again.  Also, because I can't get into my iPod, I can't provide a list of tweaks. I would if I could, but it just can't happen unless I can get in there. Flagging "look at my answer pls" comments I've started to flag a few of these once I had seen one too many of them, but I'm not sure whether I'm doing the right thing.  This is an example of what I'm talking about (this comment is on the question, but sometimes on their own answers too):    Are they something that should be considered acceptable, and if not, are they bad enough to be "flaggable"? Why the following example prints "0" and what must change for it to print "1" as I expected ?  #include &lt;iostream&gt; struct base {    virtual const int value() const {       return 0;    }    base() {       std::cout &lt;&lt; value() &lt;&lt; std::endl;    }    virtual ~base() {} };  struct derived : public base {    virtual const int value() const {       return 1;    } };  int main(void) {    derived example; }