git how to remove untracked files from the pack file I removed a folder\files from my Git repo by running  git rm -r --cached Application01   to untrack all the files in that folder and reduce the size of the Git repo.  The problem is that the pack file .git/objects/pack/*.pack is still holding the files I removed\untracked.  How can I completely remove all untracked files and lose all their history and make the pack file smaller?  Thanks
How do you fix a bad merge, and replay your good commits onto a fixed merge? I accidentally committed an unwanted file (filename.orig while resolving a merge) to my repository several commits ago, without me noticing it until now. I want to completely delete the file from the repository history.   Is it possible to rewrite the change history such that filename.orig was never added to the repository in the first place?
Cost increase and suspend Let $\{K_n \}_{n \in \mathbb{N}}$ be a collection of sets, where $K_n = [n, \infty)$. Why is $\bigcap_{n \in \mathbb{N}} K_{n}$ empty? This question is related to Exercise 2.15 in Baby Rudin, in which the reader is instructed to "[s]how that Theorem 2.36 and its Corollary become false (in $R^1$, for example) if the word 'compact' is replaced by 'closed' or by 'bounded.'"  The relevant theorem and corollary are as follows:  Theorem 2.36: If $\{K_{α}\}$ is a collection of compact subsets of a metric space $X$ such that the intersection of every finite subcollection of $\{K_{α}\}$ is nonempty, then   $\{K_{α}\}$ is nonempty.  Corollary: If $\{K_{n}\}$ is a sequence of nonempty compact sets such that $K_{n}$ contains $K_{n+1},  (n = 1, 2, 3, ...)$, then   $K_n$ is not empty.  My Question: I realize this question and similar ones have been asked elsewhere on MSE, but I've yet to see a straightforward (to me, at least) answer to my question specifically. Usually, for the "closed" part of the exercise, the following collection of closed sets, $\{K_n \}_{n \in \mathbb{N}}$ is used:  $$K_n = [n, \infty), n \in \mathbb{N}.$$  For, the intersection of every finite subcollection of ${K_n}$ is clearly nonempty. Indeed,  $$ \bigcap_{i=1}^{m} K_{n_{i}} = [N, \infty) $$  where $N = \max\{n_1, n_2, ..., n_m\}$.  Then, the assertion is made that   $$ \bigcap_{n=1}^{\infty} K_n = \emptyset. $$  However, I don't see how the same argument can't simply be used, i.e., that, for example, $N \in  \bigcap_{n=1}^{\infty} K_n$ (or maybe, say, $n+1$). Intuitively, this certainly makes sense, I'd say. For, given the archimedean property, it seems that as $n$ approaches infinity, we can always find an $l$ in each increasingly smaller set such that $n &lt; l &lt; \infty$; and so $l \in  \bigcap_{n=1}^{\infty} K_n$.  What is it exactly that I'm misunderstanding or overlooking here? Finding solution of non linear DE $x\ddot{x}-\dot{x}^2=1$ I am looking for help on how to find the solution of the following differential equation,  $$x\ddot{x}-\dot{x}^2=1,$$  which comes from solving the Euler-Lagrange equations for the lagrangian $L=x\sqrt{\dot{x}^2+1}$. It is from an exercise in my field theory course. My professor provided me with the solution $x(t)=c_1\cosh{\left(\frac{t-c_2}{c_1}\right)}$, which is a solution when plugged into the equation, but does not give any derivation.   Is there a way to solve this DE other than an educated guess? If so how? "He committed a crime killing/by killing a bird" Which wording with kill should be used here:     He committed a crime (killing/by killing) a bird.   My guess is the answer would be by killing. But I am really confused with the answer killing.   My questions relating to this sentence are:   Which one is correct and why? (or are they both correct?) If one of them is incorrect, why is it incorrect? (or, if both of them are, why?) If they are both correct, what is the difference in meaning? If they are both correct, what is the difference in their grammar? Copy file geodatabase using Python? I am trying to copy fgdb from one path to another using Python.  copy(base.gdb,dest)   And got the message:  Error Info:  [Errno 13] Permission denied:   How to fix it? Javascript profanity match NOT replace I recently installed an SSD and AFAIK Ubuntu makes a weekly FSTrim on SSD's that support it.  Is there a log file of this trims? Do I need a UK or Ireland transit visa when flying from the US to a Schengen country? I am travelling to Budapest and therefore have a Schengen Visa. I hold an Indian passport and a valid US visa. I'm travelling from Chicago-Heathrow-Budapest and returning by Budapest-Dublin-Chicago.  Would I need a transit visa for UK/Ireland?  UPDATE  Hoping this will help someone someday.   I was not allowed to board my return flight (BUD-DUB-ORD) because I do not hold an overnight Irish Transit Visa. They said I could have transited happily if the connecting flight was in the same day, but because I would have to originally land at 10 PM and catch the connecting flight next morning at 10 AM, I needed a transit visa. Well, I thought it was BS, but couldn't help comply with the rules. I booked another last minute ticket and flew via Warsaw via LOT. What is the difference between "thee" and "thou"? Change style properties of several layers simultaneously? Fix Accessibility of the sites on the leagues (and other pull downs that share the same code path) please The  site picker seems to be ordered on-site statistics instead of alphabetically:  This makes it very hard to find Photography, Physics, and Philosophy (for example) since they are nowhere near each other in the list. I’m open to a better solution, but as it stands, this feels a little too user-hostile to assume everyone is only interested in the first 3 to 5 top visible hits in the ordered list.  Scanning pages of unorganized contents is not optimal Keyboard input should filter and not just jump around  It also breaks accessibility when someone wishes to access the list from a keyboard (or a slower input control) as opposed to a mouse and visually. Book about a boy who travels to a parallel universe to get a book It is said one should avoid staring at Sun as it can damage the eyes, but it is also said that one should not come out in sun during eclipse as it emits dangerous rays. Is that true? If yes, why? Hibernate @Enumerated mapping 1970s: Student creates complex program, forgets about it, and it becomes intelligent and finds him years later How did they dispose old Joe's wife's body in the movie Looper (2012)? The reason given in the movie Looper for sending targets to the past is that it is difficult to dispose bodies.  From ,     Thirty years into the future in 2074, time travel is invented, but is   immediately outlawed. However, because by that point tracking   technology has rendered it nearly impossible to dispose of bodies   secretly, crime bosses turn to time travel to send their targets to   the past to be killed using "loopers": hired guns paid in silver to   kill whoever is sent to them.   When trying to capture old Joe, they kill his wife. So how did they dispose the body of his wife? Or is it difficult to dispose bodies only in US and not in China? And they came for old Joe only because the Rainmaker wanted to close the loops?  Could someone explain? What am I missing? Is a contradiction enough to prove a set equality to $\varnothing$? Why can't I sort questions by "votes" or "unanswered" without logging in? On the "Questions" page of each Stack Exchange site, there are links at the top to sort the questions by "newest", "frequent", "votes", "active", and "unanswered".  At least that is what it looks like if I am logged in. If I am on a site that I don't have an account for, or if I am not logged in, the only one I see is "newest".  This seems to have been done recently. I could swear I saw the other links, even when I was not logged in, until a few weeks ago, or maybe later than that.  Why was this change made? SF Short Story about resetting the world every day Trying to identify a short story. I recall it was quite short, shorter than a novella. I read it within the last few years, but my impression is that it's from the second half of the twentieth century, maybe the sixties. I can't recall if I read it online, in an anthology, or collection. Set in America, a middle-aged man stumbles on a team (maybe like dwarves or gnomes) whose job it is to set up the world for the next day by removing all the previous day's &quot;stuff&quot;, like street furniture? (I know that makes no sense). He disrupts this process and somehow prevents progressing to the next day. I also remember the story was quite lighthearted with the team behaving in a very grumpy way like interrupted workmen. I thought the title was something like &quot;What happened to Tuesday&quot; or similar. For some reason, I thought it was by Keith Laumer, but a search doesn't reveal anything. The trope was similar to &quot;The Tunnel Under the World&quot; by Pohl, and &quot;The Adjustment Team&quot; by Dick, in that reality was constantly changed and controlled by an organisation of some kind. How can I disable the Document Library drag and drop function? Before I start - I'm new to this SharePoint development lark and am slowly familiarising myself with it.  We're using SharePoint online and I have amended the SharePoint out-of-the-box document library to include some extra fields that are required when the user adds a new document.  If the user creates or uploads a new document then they are prompted to enter the required information. However if they use the drag and drop functionality the entry of the necessary fields is bypassed.  During my search I came across  which asks how to enforce metadata entry (which would be another good option for me). It also mentions disabling the drag and drop functionality by editing dragdrop.js and removing content from various methods.  I've had a look at the site collection I'm working on (to which I have full control) and I can't seem to find dragdrop.js (or the layouts folder for that matter).   Is this something that's held at site collection level or is it held at a higher level? I don't have admin rights above my site collection, do I need them? Do I need to use Visual Studio to make the necessary changes? (Currently I'm doing things through the web and having a bit of a play with Napa I don't have Visual Studio installed)  When I get there is it obvious what methods need to be removed? How can I tell SharePoint to use the new version of dragdrop.js? Is it just a case of saving a copy of the existing one to a different name and then editing the existing file?      I suppose the best place for me to have asked this question would probably have been on the existing post, but I am unable to post a comment on there, sorry...