This works in shell:  grep -R --exclude-dir=storage --exclude-dir=node-modules --include=*.{scss,css} loader.gif   But this fails:  sh -c "grep -R --exclude-dir=storage --exclude-dir=node-modules --include=*.{scss,css} loader.gif"   It fails without any message, it just can't find any occurrence.  This works:  sh -c "grep -R --exclude-dir=storage --exclude-dir=node-modules --include=*.scss loader.gif"   Why the use of curly braces in --include=*.{scss,css} fails?
Do I have to do any configuration to start brace expansion? When I run mkdir {1..10}, it just creates a dir naming {1..10}.
I know this sounds kind of ridiculous, but someone stole my mouse from my cubicle.. I came to work in the morning and was about to give my mouse a little shove to wake up the monitor, but it wasn't there!  I'm trying to figure out when this happened. I'm running Windows 7 and it's a USB mouse. I checked the event logs, but there doesn't seem to be any logs that might tell me what I'm looking for.  Is there any place where USB unplug events are logged? Share a Folder between two Local Users I and my brother have User Accounts on this machine. I want to share the Documents directory with him.  Is there a STRAIGHTFORWARD way to do it?  I am not a power user so I am looking for a way to do this using nautilus, rather than a script or a way that requires creating symlinks.  I can download an application if i have to.  Last time I wanted to do this I just copied the contents to /home for both of us to use.  Something I can do in System Settings would be appreciated How do defenders of libertarian freewill reconcile it with constraints imposed by the laws of physics? My question is about $CFT_1$. Page 18 of  says that $$L={\frac{\overset{.}{Q}^2}{2} - \frac{g}{2Q^2}}\tag{1.11}$$ is the most general Lagrangian that preserves time translation and scale invariance in $CFT_1$. How does one prove that? How do I prove if $\sup\{ (n!)^{1/n} | n \in\Bbb N\} = +\infty$?  I don't know how to properly explain it I have a txt file which actually is a html source of some webpage. Inside that txt file there are various strings preceded by a "title=" tag.  e.g.   &lt;div id='UWTDivDomains_5_6_2_2'  title='Connectivity Framework'&gt;    I am interested in getting the text Connectivity Framework to be extraced and written to a separate file.  Like this, there are many such tags each having a different text after the title='some text here which i need to extract '  I want to extract all such instances of the text from the html source/txt file and write to a separate txt file. The text can contain lower case, upper case letters and number only. The length of each text string(in characters) will vary.  I am using PowerGrep for windows. Powergrep allows me to search a text file with regular expression inout. I tried using the search as        title='[a-zA-Z0-9]  It shows the correct matches, but it matches only first character of the string and writes only the first character of the text string matched to the second txt file, not all string.   I want all string to be matched and written to the second file.  What is the correct regular expression or way to do what i want to do, using powergrep?  -AD. This is a really trivial question, but I've seen different conventions and some edits regarding which is correct, so I'm curious:  Should question titles be title-cased or sentence-cased? What is the view on accounts shared by multiple users on Stack Overflow? It has been my understanding that accounts are suppose to be for a specific user. This user, , is a company: . No doubt, this account has provided some quality answers. However, if a specific user cannot be identified, I don't think that the rep gain, rewards, or badges should be given. This should somehow be tagged as a 'Corporate User'. The rep has no real value when you can't be somewhat sure that the same person is giving the answers all the time.  This is where I found an answer by Devart: , peddling a product.    Edit 2 Good points have been brought up and most I can agree with. But we are setting a precedent. Meta Fudgey brought up a good point about the account's ability to use mod tools responsibly and consistently. Maybe this feature is not available to an account that appears to be an umbrella account unless a single user is identified. I think it is important to consider this aspect.    Let me re-iterate: the user(s) has provided excellent content and I would want that to continue. However, there is more at stake here than meaningful content and helpful resources.      Edit The view on 'shared' accounts wasn't so bright a year ago. For most of us, we have information in our profiles that identifies us as individuals. No, I don't have absolute knowledge of the activities on this account and how many people might use it. Meh, for all we know it could be a knowledgeable programmer with some good PR sense. On the other hand, it could be a PR person with no programming knowledge getting the answers from an employee. Who knows... Whenever I try to install anything with the Ubuntu Software Center, the following error appears.     Failed to download repository information      Check your Internet connection.      E:Unable to parse package file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_multiverse_i18n_Index (1) At the end of The Return of the King, Frodo, Bilbo, Gandalf, Elrond, and Galadriel left Middle-earth on a ship, along with other elves. I named those five because they were all ringbearers and it seems to be a common trait. Frodo and Bilbo bore the One Ring and the three others bore the three elven Rings.  Why did they have to do that? Why didn't they stay and have a peaceful life now that the Dark Lord was gone? So I've started playing Gathering Storm, built a bunch of coal plants and now Global Warming is out of control mainly because of me. I've been trying to remove these power plants, but I haven't found any option to sell/destroy or even replace these buildings.  Is there seriously no way to do this? Find Neural Network Inputs Given Outputs I've trained a neural network with two inputs, a single hidden layer with two neurons, and one output using a bipolar sigmoid activation function. If a single input is known, how would I determine the second input to create a desired output?  For example, let's say the neural network is trained to add two inputs to produce an output. So if input_1 = 3 and input_2 = 4, the output will be 7, (3 + 4 = 7). Given input_1 = 3 and the desired output is 7, I want to calculate the second input required to produce the desired output (the answer should be 4).  How would I do this for a network that is more complicated than basic addition and has multiple inputs/outputs? For example, for a network with four inputs and two outputs, how would I calculate input_3 and input_4 given input_1, input_2, output_1 and output_2? It's the first time I'm using Tikz on Latex. I have to draw this block diagram (this is a low resolution snip from a paper)   In Tikz I have done this:   That is very similar but I need some adjustments, like the u_i arrow and the node sum after the H(s) block.  Is there anybody that can help me with this?  my code:      \tikzstyle{block} = [draw, fill=white, rectangle,  minimum height=2em, minimum width=3em] \tikzstyle{sum} = [draw, fill=white, circle, radius=1mm, node distance=1.5cm] \tikzstyle{input} = [coordinate] \tikzstyle{output} = [coordinate] \tikzstyle{pinstyle} = [pin edge={to-,thin,black}]  \begin{tikzpicture}[auto, node distance=2cm,&gt;=latex'] \node [input, name=input] {}; \node [input, above of=input](input1) {}; \node [sum, right of=input] (sum) {}; \node [block, right of=sum] (controller) {$K(s)$}; \node [sum, right of=controller] (sum1) {}; \node [block, right of=sum1] (filterinv) {$H^{-1}(s)$}; \node [block, right of=filterinv] (system) {$G(s)$}; \node [output, right of=system] (output) {}; \node [output, above of=output] (output1) {}; \node [block, below of=filterinv] (filter) {$H(s)$}; \node [block, above of=controller] (delay) {$D(s)$}; \node [sum, below of=sum1] (sum2) {};  \draw [-&gt;] (filterinv) -- node[name=u] {$u_{i}$} (system); \draw [draw,-&gt;] (input) -- node {$s_{i-1}$} (sum); \draw [-&gt;] (sum) -- node {$e_{i}$} (controller); \draw [-&gt;] (system) -- node [name=q] {$q_{i}$}(output); \draw [-&gt;] (q) |- (filter); \draw [-&gt;] (filter) -- node {} (sum2); \draw [-&gt;] (controller) -- node {} (sum1); \draw [-&gt;] (sum1) -- node[name=xi] {$\xi_{i}$} (filterinv); \node [input, below of=sum1](input2) {}; \draw [draw,-&gt;] (input2) -- node {$r_{i}$} (sum2); \draw [-&gt;] (sum2) -| node[pos=0.99] {$-$}      node [near end] {$\tilde{s}_i$} (sum); \draw [-&gt;] (delay) -| node[] {}      node [near end] {} (sum1); \draw [draw,-&gt;] (input1) -- node[pos=0.15] {$u_{i-1}$} (delay); \draw [-&gt;] (u) |- node[pos=0.99] {$u_i$}      node [near end] {} (output1);  \end{tikzpicture} Tentative definitions in C and linking How can I find out which apps I have already downloaded on my iPhone? When you attempt to download an app that costs money, you will not be charged if you already bought the app. After you press buy and enter your iTunes password, it will say "You have already purchased this item. To download it again for free, select OK."  The problem is that I deleted hundreds of apps from my phone, some of which were paid for. Later on I might find an app I like but notice that it costs money. It might be an app I had already paid for, or an app which I got when it was free.  How can I know if I tap the buy button if I will be charged for the app or not?  In other words, how can I know if I owned a previous version of an app before? Can I use an nVidia Geforce 9600GT for triple-monitor? Possible Duplicate:          My work PC has (as you can guess from the title) a single Geforce 9600GT card. According to the  for this card, both DVI ports are Dual-Link DVI. Both are currently in use on Dell 19" 1280x1024 screens. I'm running Windows 7, with Aero enabled, for what that's worth.  What I'm wondering is if I can use a standard DVI splitter cable to drive a third screen from one of the ports -- specifically a Samsung 22" 1680x1050. I'm really outgrowing the two-screen setup, and am strongly considering bringing in my home monitor (which is almost never used) to bolster my usable space. If I can't, then my alternative is to replace one of these Dells with that Samsung, to give me at least a "little" more space.  (Before you ask, there's probably no chance I can get my company to spring for a second video card and third monitor. Even if I could, it would not be politically expedient, as a number of my other coworkers are already pretty jealous at my setup.) This works just fine:      protected void txtTest_Load(object sender, EventArgs e)     {         if (sender is TextBox) {...}      }   Is there a way to check if sender is NOT a TextBox, some kind of an equivalent of != for "is"?  Please, don't suggest moving the logic to ELSE{} :) How do I extend a List in Dart? I'm trying to use a mask to hide a part of a render layer, so that when the render layer is shown over a movie, some parts in the movie will appear to be in front of the render layer.  For example, assume I want to add a box to this image, so that it would look like it's behind the person:    I created the following simple object:    If I render the object, it looks great - the object is solid, everything else is transparent (I didn't use any 'sky'):     Now I create a mask to describe the standing person (or at least the part that would otherwise be covered by the box):    What I want now is to create a "hole" in the rendered box, so that when I use Alpha-over, the box look as if it's behind the person, but I can't find an easy way to do that. My first guess was to use 'Set alpha' to apply the mask (inverted) as an alpha for the rendered layer, but this doesn't look good:    The mask did create a "hole" where it should, but now all the other pixels are not transparent. How can I "retain" the transparent pixels while setting more pixels to be transparent based on the mask (use it as a matte)?  Note: I can do this with (I'm ashamed to say) some math work on the alpha channel, but it just doesn't seem right:    Thanks, and sorry for the [oh so] long question. bash history for current session Maybe I'm overlooking something but is there a way to get your current bash history for the current session you are using like  if i run  ssh host $ pwd $ ls $ cd /tmp   I just want to see those 3 commands and nothing else