When I switch to a branch, I can see modifications done in other branch ...  Sample : - I'm on master - I switch to branc A - I do some modifications - status show me modified files - I switch to master - status is always showing me the same modifications  I have already used branches on other project and other computer without this problem : when I switched to another branch, the modifications were not more visibles ...  Any idea ?  Thanks,  Xavier
I am working on a git repository with a master branch and another topic branch. I have switched to topic branch and modified a file. Now, if I switched to master branch that same file is shown as modified.   For example:  git status in git-build branch:  # On branch git-build # Changes to be committed: #   (use "git reset HEAD &lt;file&gt;..." to unstage) # #       modified:   cvsup_current #   Switch to master branch  [root@redbull builder_scripts (git-build)]# git co master M       builder_scripts/cvsup_current Switched to branch "master"   git status in master branch  [root@redbull builder_scripts (master)]# git status # On branch master # Changes to be committed: #   (use "git reset HEAD &lt;file&gt;..." to unstage) # #       modified:   cvsup_current #   Why is that the file is shown as modified in master branch even though it was modified in git-build branch?   My understanding was that the branches are independent of each other and when I change from one branch to another the changes do not "spill over" from one branch to another. So I am obviously missing some thing here.   Anyone got a clue stick?
Discourage questions being marked as answered within an hour or so of being posted Concatenate table without header I would like to concatenate several tables and just keeping the header in the first line (and thus not having a new header each time that a new table has been concatenate). Does anyone know how to do that?  I am currently using:  find "/dir/folder" name "*.dat" -exec cat {} + &gt;&gt; "/dir/folder/table.txt"   but I can get rid of the header with that. Anonymous questions and Avatars Some Stack Exchange sites allow to ask an anonymous question by specifying a one-time user name and an email which is "required, but never shown". However the Gravatar attached to the email is shown anyway. Anonymous users do not want their picture to appear - someone can find their identity via google image search or someone that knows them.  Example: open incognito window and : Side-by-side source and output when documenting a style file What makes a DSLR better than a Point & Shoot? Why should I put up with the inconvenience of lugging around a DSLR?  They look cool, but is there more substance to it? Intuitive explanation of the tower property of conditional expectation I understand how to define conditional expectation and how to prove that it exists.  Further, I think I understand what conditional expectation means intuitively. I can also prove the tower property, that is if $X$ and $Y$ are random variables (or $Y$ a $\sigma$-field) then we have that  $$\mathbb E[X] = \mathbb{E}[\mathbb E [X | Y]].$$  My question is: What is the intuitive meaning of this? It seems quite puzzling to me.  (I could find similar questions but not this one.) How do I execute a string containing Python code in Python? How do I execute a string containing Python code in Python? I am on SharePoint 2013 and do not have access to Designer, as a preface.  I am trying to create a list view that filters items by whether or not they were added in the last hour.  I had done this earlier, only with items that were added in the current week, by creating two columns, 'Week Start' and 'Week End', and filtering by Created falling between those two.  Simple enough.  However, filtering list views does not allow for complex functions, nor does the [Today] function recognize time, causing an issue.  Is there any workaround for this?  Thanks. How to distribute proprietary Mathematica code Updating polygon areas in QGIS? I'm using QGIS 2.6 and regularly update a shapefile layer to indicate felling progress. However, if I edit the nodes of a polygon, save the layer out then look at the Attributes table the area shown doesn't change. Is there a general theorem stating why the restricted Lorentz group's exponential map is surjective? The exponential map for the restricted Lorentz group is surjective. An outline of why is shown on the wiki page .  Is there a more general theorem that states that for some class of Lie groups or Riemannian manifolds (which includes the restricted Lorentz group), the exponential map is surjective?  There is a theorem stating that compact, connected Lie groups have surjective exponential maps. But as the restricted Lorentz group is not compact, this isn't applicable. It started happening today... all of a sudden, no apparent reason!  Here's the output from df:   assp:~# df -k Filesystem           1K-blocks      Used Available Use% Mounted on /dev/simfs             6291456   1378384   4913072  22% / tmpfs                  8202680         0   8202680   0% /lib/init/rw tmpfs                  8202680         0   8202680   0% /dev/shm  assp:~# df -i Filesystem            Inodes   IUsed   IFree IUse% Mounted on /dev/simfs           55781934   83005 55698929    1% / tmpfs                2050670       2 2050668    1% /lib/init/rw tmpfs                2050670       1 2050669    1% /dev/shm  assp:~# df -h Filesystem            Size  Used Avail Use% Mounted on /dev/simfs            6.0G  1.4G  4.7G  22% / tmpfs                 7.9G     0  7.9G   0% /lib/init/rw tmpfs                 7.9G     0  7.9G   0% /dev/shm   Here's an actual entry from /var/log/mail.warn:   Dec 11 17:55:37 assp postfix/smtpd[30614]: warning: not enough free space in mail queue: 0 bytes &lt; 1.5*message size limit Dec 11 17:55:37 assp postfix/cleanup[30617]: warning: 4361D850D54: write queue file: No space left on device   . A question about the idea of Laplace transform In Laplace integral transform equation one multiplies the function $f(t)$ by $e^{-st}$. I read in many tutorials that $e^{-st}$ decays much faster than any other function so the integral diverges.  But what I don't understand what makes one to think to multiply a function with  $e^{-st}$ to transform it in $s$ domain? What is the motivation behind it? Why would you suddenly come up with an idea as such: "Oh there is a function $f(t)$ in time domain what can I do to transform it to complex freq. ($s$) domain? Hmm let me multiply it with $e^{-st}$ and integrate it from zero to infinity" What would have motivated this idea of multiplying and integrating for transformation? Nested cross validation for model selection How can one use nested cross validation for model selection?   From what I read online, nested CV works as follows:   There is the inner CV loop, where we may conduct a grid search (e.g. running K-fold for every available model, e.g. combination of hyperparameters/features) There is the outer CV loop, where we measure the performance of the model that won in the inner fold, on a separate external fold.    At the end of this process we end up with $K$ models ($K$ being the number of folds in the outer loop). These models are the ones that won in the grid search within the inner CV, and they are likely different (e.g. SVMs with different kernels, trained with possibly different features, depending on the grid search).  How do I choose a model from this output? It looks to me that selecting the best model out of those $K$ winning models would not be a fair comparison since each model was trained and tested on different parts of the dataset.  So how can I use nested  CV for model selection?   Also I have read threads discussing how nested model selection is useful for analyzing the learning procedure. What types of analysis /checks can I do with the scores that I get from the outer K folds? For an existing set of line features, I would like to generate a perpendicular line, of say 1km, at the midpoint of each existing line feature in ArcGIS.  I imagine that The methodology would be to:   create a tangent line at the midpoint of each existing line feature calculate the angle of the tangent line based on the angle of the tangent line, calculate the location of the endpoint of the new line create the new line with the calculated endpoint of the new line and the existing midpoint of the old line   Let's assume that we are in a UTM projection and can use coordinates to calculate distance and direction.  How would I do this with ArcGIS tools or with ArcPy? How to edit a file in vi editor (arrow keys prints letters)? I am open a file in vi:  vi index.php   Here the problem is: when I press the down arrow and it prints 'B'. Why it prints 'B'? Restrict the access to suggested edit reviews on deleted posts on an answer deleted as rude/abusive is visible, even without logging in (and for users with less than 10k reputation). These users can't see the answer , via the , or a direct link to the .    This is a potential avenue for spammers, just like the suggested edit spam used to be, but is ; according to the :     In addition, in order to reduce the incentive for spammers to make spam edits that get rejected, suggested edit spam is hidden from logged-out users, so they can't show their clients public-facing pages with spam (so they won't get paid).   For this to work, the spammer would need two accounts, one to post the spam and a second one to suggest an edit. Even if the spam post is quickly nuked, the review link will be active forever. One could argue that logged-in users without 10k reputation shouldn't be able to see the suggested edits either; I'm partial to that. Can we have a notification when the answer to any of my question got edited? If a user asked a question and got an answer which was not helpful.  After sometime the answerer edits the answer with some good content. How the OP will get to know that?  Is it necessary to add comment check my edited answer?  We can say that the OP should refresh the page to find the helpful answer.  Consider if the OP finds the answer as helpful and accepted that. After sometime if the answerer/anyother user edit the answer to change the content which may not solve the issue.   How will it be notified to OP?  currently we are notifying the OP when there is any comment to the queation or any new answers or any comments with the name of OP with @ to any answer.  This will lead the future visitors to confuse and reduce the quality of post.  Can we have a notification to the original poster when the answer to any of his/her question got edited? What's the best blog post/video/tweet/whatever to explain how the Stack Exchange system works to regular people? I am trying to gauge interest for a new Stack Exchange site, but I want to explain it to people as best (and preferably) as visually as I can. Any YouTube clips breaking it down?  anyone?  Note: I am fully aware of , but mine is about Stack Exchange, not Stack Overflow.  Most people think I'm describing traditional forum software, which they know sucks. Is there some way to describe the magic of how the design of the Stack Exchange system actually produces useful results very quickly? I can describe generally that it is a Q&amp;A site that users vote on the answers, but Stack Overflow feels like so much more. Am I perhaps thinking too big about this? Let's assume a very simplified situation. There is only one seller asking for 10$ and there is only one buyer bidding 20$. At what price would the transaction go?   Some answers say it won't, because the ask price has to match the bid price. () Other answers say, that the time ordering is important. () Which answer is correct? What is the final price in the presented situation?