Locate the file that a given non-clustered index is stored on?
Primary filegroup is full SQL Server 2008
Geometric intuition behind gradient, divergence and curl Point reflection over a line I'm having trouble understanding the solution presented below (It's from a textbook). I tried to get something similar, but to no avail. Help me find the way he derived those a,b,x2 and y2 expressions.   Point p is a point which we want to reflect (It's a simple structure with two integers x and y representing coordinates on a 2d plane); (x0,y0) and (x1,y1) are coordinates of endpoints of a line.  Expected result is a new point with reflected coordinates.   Point mirror(Point p, int x0, int y0, int x1, int y1) {     double dx,dy,a,b;    long x2,y2;    Point p1; //reflected point to be returned      dx  = (double) (x1 - x0);    dy  = (double (y1 - y0);     a   = (dx * dx - dy * dy) / (dx * dx + dy*dy);    b   = 2 * dx * dy / (dx*dx + dy*dy);     x2  = Math.round(a * (p.x - x0) + b*(p.y - y0) + x0);     y2  = Math.round(b * (p.x - x0) - a*(p.y - y0) + y0);     p1 = Point((int)x2,(int)y2);      return p1;  } Title does not specify "On Hold" Testing the app, I noticed the title does not specify if a question is "On Hold" ... I haven't checked specifically, but would assume it doesn't specify as "Duplicate" either ... Or am I missing it somewhere? Is it not in the title but located/displayed some other way? If it is, this could be very confusing to users. If it isn't there, it's definitely confusing to users :-)  Using: Version 1.0.1.125 on iPad3 with iOS8 If $A$ commutes with $B$ and $B$ commutes with $C$, then $A$ commutes with $C$ Let $A,B,C \in \ M(3,\mathbb{R})$ be such that $A$ commutes with $B $and $B$ commutes with $C$. $B$ is not scalar matrix. Then, $A$ commutes with $C$.   Is this true or false? I think it is not true, but cannot think of a counterexample. Any suggestions? How to reduce title bar height? Why is a method not identical to itself? Grant permission for new created files inside folder automatically I have a folder which permission is set to 777 but when I add any files or folder unziping in that folder. Extracted files or folder permission never change. Destination folder permission is 777 and I want what I will add in that folder will automatically get permission of 777.   When I add any files or folder by extracting .zip in that folder, extracted folder/files permission won't change automatically. I always have to chmod for newly add file/folder! What constitutes protons? When I see pictures, I can't understand. Protons are made of quarks, but some say that they are made of 99% empty space. Also, in this illustration from Wikipedia, what's between the quarks? I'm not a git master, but I have been working with it for some time now, with several different projects.  In each project, I always git clone [repository] and from that point, can always git pull, so long as I don't have outstanding changes, of course.  Recently, I had to revert to a previous branch, and did so with git checkout 4f82a29.  When I was again ready to pull, I found that I had to set my branch back to master.  Now, I can not pull using a straight git pull but instead, have to specify git pull origin master, which is annoying, and indicates to me that I don't fully understand what is going on.  What has changed which does not allow me to do a straight git pull without specifying origin master, and how to I change it back?  UPDATE:  -bash-3.1$ cat config [core]     repositoryformatversion = 0     filemode = true     bare = false     logallrefupdates = true [branch "master"] [remote "origin"]     url = git@github.com:user/project.git     fetch = refs/heads/*:refs/remotes/origin/*   UPDATE 2: To be clear, I understand that my original method may have been incorrect, but I need to fix this repo so that I can simply use git pull again.  Currently, git pull results in:  -bash-3.1$ git pull You asked me to pull without telling me which branch you want to merge with, and 'branch.master.merge' in your configuration file does not tell me either.  Please name which branch you want to merge on the command line and try again (e.g. 'git pull  '). See git-pull(1) for details on the refspec.  If you often merge with the same branch, you may want to configure the following variables in your configuration file:      branch.master.remote =      branch.master.merge =      remote..url =      remote..fetch =   See git-config(1) for details.   I can tell git pull which branch to merge, and it works correctly, but git pull does not work as it did originally before my git checkout. Downloading PlayOnLinux I'm downloading PlayOnLinux to run Paint Tool SAI, but I cannot open PlayOnLinux. When I click on it to open it, a dialog box comes up that says: "PlayOnLinux cannot find curl (from cURL) You need to install it to continue". How do I install this?   I'm referring to this article: Command for creating a directory and navigating into it directly? Hitting arrow keys adds characters in vi editor When I tried to use arrow keys in insert mode in vi editor the following characters are being inserted in the editor:   for ↓ I get B, for ↑ I get A, for ← I get D, for → I get C.   Please help me in resolve this problem. ls: cannot access .gvfs: Permission denied Whenever I run an application in terminal as root (such as sudo gedit  /etc/default/varnish) , subsequently when I open another terminal I get "ls: cannot access .gvfs: Permission denied" error at top line of terminal.   I found a solution on the net     umount /path/to/.gvfs   rm -rf .gvfs   but it only fixes problem temporarily.  It appears that I have two mounted instances of gvfs in my system    $ sudo mount |grep gvfs     gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=33)     gvfsd-fuse on /home/****/.gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0)   I don't know if it's related to, a few months ago I had to change permission in my home folder like     sudo chown -R $USER:www-data   Would you please help me fix it?  EDIT: After I unmount /run/user/1000/gvfs I don't get that error. What is the exposure triangle? How do the "sides" affect my photographs? Loading D3.js data from a simple JSON string Find minimum value of $\sum \frac{\sqrt{a}}{\sqrt{b}+\sqrt{c}-\sqrt{a}}$ Is there any shortcut/easy way to switch this system proxy settings? How does Intel Turbo Boost work? I just got a new Intel CPU, and the specifications say 3.5GHz but with turbo boost to 3.9GHz. What does Intel Turbo Boost do? From the description it sounds like they are saying "The road's speed limit is 100 km/hr, but if you get to that speed then the new speed limit is 140 km/hr". Why not just set the clock speed to 3.9GHz to start with? So what is Intel Turbo Boost actually doing? I have run into an issue with WPF and Commands that are bound to a Button inside the DataTemplate of an ItemsControl. The scenario is quite straight forward. The ItemsControl is bound to a list of objects, and I want to be able to remove each object in the list by clicking a Button. The Button executes a Command, and the Command takes care of the deletion. The CommandParameter is bound to the Object I want to delete. That way I know what the user clicked. A user should only be able to delete their "own" objects - so I need to do some checks in the "CanExecute" call of the Command to verify that the user has the right permissions.  The problem is that the parameter passed to CanExecute is NULL the first time it's called - so I can't run the logic to enable/disable the command. However, if I make it allways enabled, and then click the button to execute the command, the CommandParameter is passed in correctly. So that means that the binding against the CommandParameter is working.  The XAML for the ItemsControl and the DataTemplate looks like this:  &lt;ItemsControl      x:Name="commentsList"     ItemsSource="{Binding Path=SharedDataItemPM.Comments}"     Width="Auto" Height="Auto"&gt;     &lt;ItemsControl.ItemTemplate&gt;         &lt;DataTemplate&gt;             &lt;StackPanel Orientation="Horizontal"&gt;                 &lt;Button                                                  Content="Delete"                     FontSize="10"                     Command="{Binding Path=DataContext.DeleteCommentCommand, ElementName=commentsList}"                      CommandParameter="{Binding}" /&gt;             &lt;/StackPanel&gt;                                 &lt;/DataTemplate&gt;     &lt;/ItemsControl.ItemTemplate&gt; &lt;/ItemsControl&gt;   So as you can see I have a list of Comments objects. I want the CommandParameter of the DeleteCommentCommand to be bound to the Command object.  So I guess my question is: have anyone experienced this problem before? CanExecute gets called on my Command, but the parameter is always NULL the first time - why is that?  Update: I was able to narrow the problem down a little. I added an empty Debug ValueConverter so that I could output a message when the CommandParameter is data bound. Turns out the problem is that the CanExecute method is executed before the CommandParameter is bound to the button. I have tried to set the CommandParameter before the Command (like suggested) - but it still doesn't work. Any tips on how to control it.  Update2: Is there any way to detect when the binding is "done", so that I can force re-evaluation of the command? Also - is it a problem that I have multiple Buttons (one for each item in the ItemsControl) that bind to the same instance of a Command-object?  Update3: I have uploaded a reproduction of the bug to my SkyDrive: How to prove that if $\forall x \in (a,b)$ Lebesgue integral $\int_{(a,x)}fd\lambda=0$, then $f(x)=0$ $\lambda$-almost everywhere? Let $f:(a,b)\rightarrow\mathbb{R}$.  The statement to prove is that if $\forall x \in (a,b)$ Lebesgue integral $\int_{(a,x)}fd\lambda=0$, then $f(x)=0$ $\lambda$-almost everywhere.  So if it wouldn't be true then we would have $\forall x \in (a,b):\int_{(a,x)}f_+d\lambda=\int_{(a,x)}f_-d\lambda\neq0$, so every interval contains positive and negative values of the function. It is  such an $f$ so my guess would be that this function is not Lebesgue measurable and we can't take this integral.  Thanks in advance!